Check Spotx for the latest Spotify #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Spotx for the latest Spotify | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run Spotx | |
shell: powershell | |
run: | | |
$jsonUrl = "https://raw.githubusercontent.com/amd64fox/LoaderSpot/main/versions.json" | |
$resp = Invoke-RestMethod -Uri $jsonUrl | |
# Get a link to the x86 installer for the first version | |
$firstVersion = $resp.PSObject.Properties.Name | Select-Object -First 1 | |
$x86InstallerUrl = $resp.$firstVersion.links.win.x86 | |
# Regex to find the desired part of the link | |
$regex = [regex]::Match($x86InstallerUrl, "spotify_installer-(.+?)\.exe") | |
$version = $regex.Groups[1].Value | |
# Incoming parameters | |
$parametrs = '-new_theme -v $version -dev -funnyprogressBar -homesub_off -sp-over -cache_limit 1000 -block_update_on -lyrics_stat spotify -urlform_goofy "https://docs.google.com/forms/formResponse" -idbox_goofy "9999999" -podcasts_off -adsections_off' | |
# Run Spotx | |
iex "& { $(iwr -useb 'https://raw.githubusercontent.com/SpotX-Official/spotx-official.github.io/main/run.ps1') } $parametrs" |