Skip to content

Commit

Permalink
update release script. add mac packager
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagohersan committed Feb 29, 2024
1 parent 2800740 commit 014c912
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release-gh-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@ jobs:
run: |
mv release/the-happy-app-darwin-x64 ./the-happy-app-mac
tar -czf the-happy-app-mac.tar.gz the-happy-app-mac
mv release/the-happy-app-mac-installer/the-happy-app.dmg .
- name: Release
uses: softprops/action-gh-release@v1
with:
files: the-happy-app-mac.tar.gz
files: |
the-happy-app-mac.tar.gz
the-happy-app.dmg
tag_name: ${{ steps.setup.outputs.TAG_NAME }}
Binary file added docs/Instructions_MAC.pdf
Binary file not shown.
Binary file added docs/Instructions_WIN.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion installers/createMacInstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if [ ! -d release/the-happy-app-darwin-x64/The\ Happy\ App.app ]; then
release/the-happy-app-darwin-x64/The\ Happy\ App.app
fi

cp -f ../docs/Instructions_MAC.pdf \
cp -f ./docs/Instructions_MAC.pdf \
release/the-happy-app-darwin-x64/INSTALL\ INSTRUCTIONS.pdf

./node_modules/.bin/electron-installer-dmg release/the-happy-app-darwin-x64/The\ Happy\ App.app the-happy-app --overwrite --icon=icons/Happy.icns --out=release/the-happy-app-mac-installer
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "the-happy-app",
"name": "The-Happy-App",
"productName": "The Happy App",
"description": "Application for quantifying happiness",
"version": "0.1.0",
"main": "main.js",
"scripts": {
"start": "DEBUG=true node_modules/.bin/electron .",
"pack-osx": "electron-packager . the-happy-app --overwrite --platform=darwin --arch=x64 --icon=icons/Happy.icns --prune=true --ignore=\"release|feelings|icons|.gitignore|.travis.yml\" --out=release",
"pack-win": "electron-packager . the-happy-app --overwrite --platform=win32 --arch=ia32 --icon=icons/Happy.ico --prune=true --ignore=\"release|feelings|icons|.gitignore|.travis.yml\" --out=release --version-string.CompanyName=CE --version-string.FileDescription=CE --version-string.ProductName=\"The Happy App\"",
"pack-osx": "electron-packager . the-happy-app --overwrite --platform=darwin --arch=x64 --icon=icons/Happy.icns --prune=true --ignore=\"release|feelings|icons|.gitignore|.github\" --out=release",
"pack-win": "electron-packager . the-happy-app --overwrite --platform=win32 --arch=ia32 --icon=icons/Happy.ico --prune=true --ignore=\"release|feelings|icons|.gitignore|.github\" --out=release --version-string.CompanyName=CE --version-string.FileDescription=CE --version-string.ProductName=\"The Happy App\"",
"installer-osx": "bash installers/createMacInstaller.sh ",
"installer-win": "node installers/createWindowsInstaller.js",
"dmg": "npm run pack-osx; npm run installer-osx",
Expand Down

0 comments on commit 014c912

Please sign in to comment.