Skip to content

Commit

Permalink
Fix #4
Browse files Browse the repository at this point in the history
  • Loading branch information
programmer2514 authored Jan 14, 2022
1 parent 349a9c1 commit ffaae7c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions BEE2_Installer.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -209,17 +209,20 @@ InstallBEE2:
; Parse JSON data
FileRead packagesJSON, packages.json
packagesData := JSON.Load(packagesJSON)
packagesURL := packagesData[1].assets[1].browser_download_url
packagesURL := packagesData[1].assets[2].browser_download_url
packagesMusicURL := packagesData[1].assets[1].browser_download_url
packageVersion := packagesData[1].tag_name

; Download file
; Download files
UrlDownloadToFile, %packagesURL%, packages.zip
UrlDownloadToFile, %packagesMusicURL%, music_packages.zip

GuiControl,, InstallText, Installing packages...
Sleep, 250

; Unzip and copy to program files
RunWait, unzip.exe packages.zip -d packages,, Hide
RunWait, unzip.exe music_packages.zip -d packages,, Hide
CopyFilesAndFolders(A_Temp . "\BEEMOD2\packages\*", "C:\Program Files\BEEMOD2", true)
}

Expand Down

0 comments on commit ffaae7c

Please sign in to comment.