File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323
2424 # 3. Install Flutter
2525 - name : Install Flutter
26+ shell : pwsh
2627 run : |
27- if (!(Test-Path -Path "flutter")) {
28+ if (!(Test-Path "flutter")) {
2829 git clone https://github.com/flutter/flutter.git -b stable
2930 }
3031 echo "$PWD/flutter/bin" >> $env:GITHUB_PATH
4142 - name : Build Windows
4243 run : flutter build windows
4344
44- # 7. Rename exe (biar konsisten)
45+ # 7. Rename EXE
4546 - name : Rename EXE
47+ shell : pwsh
4648 run : |
4749 Rename-Item `
4850 -Path "build\windows\x64\runner\Release\project_changes_generator.exe" `
@@ -52,10 +54,11 @@ jobs:
5254 - name : Install Inno Setup
5355 run : choco install innosetup -y
5456
55- # 9. Create installer.iss (FIXED)
57+ # 9. Create installer.iss (FIXED YAML SAFE )
5658 - name : Create Installer Script
59+ shell : pwsh
5760 run : |
58- @"
61+ $content = @'
5962[Setup]
6063AppName=deploy_packager
6164AppVersion=1.0
@@ -71,7 +74,9 @@ Source: "build\windows\x64\runner\Release\*"; DestDir: "{app}"; Flags: ignorever
7174
7275[Icons]
7376Name : " {group}\d eploy_packager" ; Filename: "{app}\deploy_packager.exe"
74- " @ | Out-File -Encoding ASCII installer.iss
77+ ' @
78+
79+ Set-Content -Path installer.iss -Value $content
7580
7681 # 10. Build installer
7782 - name: Build Installer
You can’t perform that action at this time.
0 commit comments