Skip to content

Commit aa3f0e6

Browse files
committed
fix to build script
1 parent a3af4fa commit aa3f0e6

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/build-and-release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,14 @@ jobs:
103103
xcrun stapler staple --verbose "$APP_PATH"
104104
105105
echo "Creating DMG using script: ${{ matrix.create_dmg_script }}"
106-
${{ matrix.create_dmg_script }}
106+
${{ matrix.create_dmg_script }}
107+
108+
- name: Rename DMG so filenames are unique
109+
if: runner.os == 'macOS'
110+
run: |
111+
DMG_DIR="dist/installers-${{ matrix.installer_dir_suffix }}"
112+
mv "$DMG_DIR/Localforge.dmg" \
113+
"$DMG_DIR/Localforge-${{ matrix.installer_dir_suffix }}.dmg"
107114
108115
# ---------- Windows portable build via electron-packager --------
109116
- name: Package Windows (portable)
@@ -190,7 +197,6 @@ jobs:
190197
uses: softprops/action-gh-release@v1
191198
with:
192199
files: |
193-
dist-artifacts/localforge-osx-arm64-installer/*.dmg
194-
dist-artifacts/localforge-osx-intel-installer/*.dmg
195-
dist-artifacts/localforge-windows-installer/*.zip
200+
dist-artifacts/**/Localforge-*.dmg
201+
dist-artifacts/localforge-windows-installer/*.zip
196202
draft: true

0 commit comments

Comments
 (0)