Skip to content

Commit e39e58d

Browse files
committed
fix: github actions build windows installer
1 parent f018287 commit e39e58d

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/build-windows-installer.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ jobs:
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
@@ -41,8 +42,9 @@ jobs:
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]
6063
AppName=deploy_packager
6164
AppVersion=1.0
@@ -71,7 +74,9 @@ Source: "build\windows\x64\runner\Release\*"; DestDir: "{app}"; Flags: ignorever
7174

7275
[Icons]
7376
Name: "{group}\deploy_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

0 commit comments

Comments
 (0)