mirror of
https://github.com/localsend/localsend.git
synced 2026-04-29 03:00:23 -04:00
ci: automate inno
This commit is contained in:
19
scripts/compile_windows_exe.ps1
Normal file
19
scripts/compile_windows_exe.ps1
Normal file
@@ -0,0 +1,19 @@
|
||||
cd app
|
||||
|
||||
fvm flutter clean
|
||||
fvm flutter pub get
|
||||
fvm flutter build windows
|
||||
|
||||
Remove-Item "D:\inno" -Force -Recurse -ErrorAction SilentlyContinue
|
||||
New-Item -ItemType Directory -Force -Path "D:\inno"
|
||||
Copy-Item -Path "build\windows\runner\Release\*" -Destination "D:\inno" -Recurse
|
||||
Copy-Item -Path "assets\packaging\logo-256.ico" -Destination "D:\inno"
|
||||
|
||||
cd ..
|
||||
|
||||
Copy-Item -Path "scripts\windows\x64\*" -Destination "D:\inno" -Recurse
|
||||
Remove-Item "D:\inno-result" -Force -Recurse -ErrorAction SilentlyContinue
|
||||
New-Item -ItemType Directory -Force -Path "D:\inno-result"
|
||||
iscc .\scripts\compile_windows_exe-inno.iss
|
||||
|
||||
Write-Output 'Generated Windows exe installer!'
|
||||
Reference in New Issue
Block a user