Skip to content

Commit

Permalink
Merge pull request #3 from cheng1nuo/master
Browse files Browse the repository at this point in the history
update installer.script add uninstaller.script
  • Loading branch information
MadDogOwner authored Nov 1, 2024
2 parents c00c21f + 0bb6017 commit 75c366d
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions bucket/lx-music-desktop.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,24 @@
],
"installer": {
"script": [
"$configpath = \"$env:APPDATA\\lx-music-desktop\\LxDatas\"",
"$configpath = \"$env:APPDATA\\lx-music-desktop\"",
"if (!(Test-Path \"$configpath\")) {",
" New-Item -Path \"$configpath\" -Type Directory -Force | Out-Null; Invoke-WebRequest -Uri \"http://url.xrgzs.top/lxapi\" -OutFile \"$configpath\\user_api.json\"",
" New-Item -Path \"$configpath\" -Type Directory -Force | Out-Null",
" New-Item -Path \"$persist_dir\\userdata\\LxDatas\" -Type Directory -Force | Out-Null",
" New-Item \"$env:APPDATA\\lx-music-desktop\\LxDatas\" -ItemType Junction -Target \"$persist_dir\\userdata\\LxDatas\" | Out-Null",
" New-Item -Path \"$persist_dir\\userdata\\databases\" -Type Directory -Force | Out-Null",
" New-Item \"$env:APPDATA\\lx-music-desktop\\databases\" -ItemType Junction -Target \"$persist_dir\\userdata\\databases\" | Out-Null",
"}",
"ensure \"$persist_dir\\userdata\" | Out-Null",
"New-Item \"$env:APPDATA\\lx-music-desktop\\LxDatas\" -ItemType Junction -Target \"$persist_dir\\userdata\\LxDatas\" | Out-Null",
"New-Item \"$env:APPDATA\\lx-music-desktop\\databases\" -ItemType Junction -Target \"$persist_dir\\userdata\\databases\" | Out-Null"

"if (!(Test-Path \"$persist_dir\\userdata\\LxDatas\\user_api.json\")) {",
" Invoke-WebRequest -Uri \"http://url.xrgzs.top/lxapi\" -OutFile \"$persist_dir\\userdata\\LxDatas\\user_api.json\"",
"}"
]
},
"uninstaller":{
"script":[
"$configpath = \"$env:APPDATA\\lx-music-desktop\"",
"remove-Item -Recurse -Force -Path \"$configpath\""
]
},
"persist": [
Expand Down

0 comments on commit 75c366d

Please sign in to comment.