mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-08-11 18:41:10 +10:00
Compare commits
2
Commits
c1c04dd69b
...
730ea89a66
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
730ea89a66 | ||
|
|
513bbdbe57 |
@@ -14,19 +14,37 @@ jobs:
|
||||
- name: Run Spotx
|
||||
shell: powershell
|
||||
run: |
|
||||
$jsonUrl = "https://raw.githubusercontent.com/amd64fox/LoaderSpot/main/versions.json"
|
||||
$jsonUrl = "https://raw.githubusercontent.com/LoaderSpot/table/refs/heads/main/table/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
|
||||
$x64InstallerUrl = $resp.$firstVersion.links.win.x64
|
||||
# Use fullversion because installer names include architecture suffixes
|
||||
$latestEntry = $resp.PSObject.Properties | Select-Object -First 1
|
||||
if (-not $latestEntry) {
|
||||
throw "No Spotify versions found in $jsonUrl"
|
||||
}
|
||||
|
||||
# Regex to find the desired part of the link
|
||||
$regex = [regex]::Match($x64InstallerUrl, "spotify_installer-(.+?)\.exe")
|
||||
$version = $regex.Groups[1].Value
|
||||
$spotifyFullVersion = $latestEntry.Value.fullversion
|
||||
if ([string]::IsNullOrWhiteSpace($spotifyFullVersion) -or $spotifyFullVersion -notmatch '^\d+\.\d+\.\d+\.\d+\.g[0-9a-f]{8}$') {
|
||||
throw "Invalid Spotify fullversion for $($latestEntry.Name)"
|
||||
}
|
||||
|
||||
# Incoming parameters
|
||||
$parametrs = '-Verbose -new_theme -v $version -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 -lyrics_block'
|
||||
$parameters = @{
|
||||
Verbose = $true
|
||||
new_theme = $true
|
||||
version = $spotifyFullVersion
|
||||
confirm_spoti_recomended_over = $true
|
||||
cache_limit = 1000
|
||||
block_update_on = $true
|
||||
lyrics_stat = "spotify"
|
||||
urlform_goofy = "https://docs.google.com/forms/formResponse"
|
||||
idbox_goofy = "9999999"
|
||||
podcasts_off = $true
|
||||
adsections_off = $true
|
||||
lyrics_block = $true
|
||||
}
|
||||
|
||||
# Run Spotx
|
||||
iex "& { $(iwr -useb 'https://raw.githubusercontent.com/SpotX-Official/SpotX/refs/heads/main/run.ps1') } $parametrs"
|
||||
$spotxUrl = "https://raw.githubusercontent.com/SpotX-Official/SpotX/refs/heads/main/run.ps1"
|
||||
$spotxScript = [scriptblock]::Create((Invoke-WebRequest -UseBasicParsing -Uri $spotxUrl).Content)
|
||||
& $spotxScript @parameters
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
AGENTS.md
|
||||
@@ -2,7 +2,7 @@
|
||||
param
|
||||
(
|
||||
[Parameter(HelpMessage = 'Latest recommended Spotify version for Windows 10+.')]
|
||||
[string]$latest_full = "1.2.88.483.g8aa8628e",
|
||||
[string]$latest_full = "1.2.88.484.g3a9ab868",
|
||||
|
||||
[Parameter(HelpMessage = 'Latest supported Spotify version for Windows 7-8.1')]
|
||||
[string]$last_win7_full = "1.2.5.1006.g22820f93",
|
||||
|
||||
Reference in New Issue
Block a user