Skip to content

Commit 084742e

Browse files
committed
Release Installer
1 parent ce8c420 commit 084742e

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/mac-release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@ jobs:
9696
- name: Codesign
9797
run: codesign --force --deep --sign - SerialPrograms.app
9898

99-
# Read-write format in case Resources needs to be updated
99+
# Create a disk image for installation
100100
- name: Create disk image
101101
run: |
102102
brew install create-dmg
103103
mkdir dmg
104104
cd dmg
105-
cp -r ../SerialPrograms.app .
105+
mv ../SerialPrograms.app ./SerialPrograms.app
106106
create-dmg --volname "SerialPrograms Installer" \
107107
--window-pos 150 150 \
108108
--window-size 600 400 \
@@ -112,17 +112,18 @@ jobs:
112112
--app-drop-link 450 160 \
113113
"SerialPrograms-Installer.dmg" \
114114
"./"
115-
115+
mv SerialPrograms-Installer.dmg $GITHUB_WORKSPACE/SerialPrograms-Installer.dmg
116+
116117
- name: Upload artifact
117118
uses: actions/upload-artifact@v4
118119
with:
119-
name: SerialPrograms.dmg
120-
path: SerialPrograms.dmg
120+
name: SerialPrograms-Installer.dmg
121+
path: SerialPrograms-Installer.dmg
121122

122123
- name: GitHub Release
123124
uses: softprops/action-gh-release@v2
124125
with:
125-
files: SerialPrograms.dmg
126+
files: SerialPrograms-Installer.dmg
126127
# Tag should be automatically set in the case of a tag push
127128
tag_name: ${{ github.event.inputs.version }}
128129
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)