Skip to content

Commit

Permalink
Finalized publish workflow for windows and linux
Browse files Browse the repository at this point in the history
  • Loading branch information
lMortimerl committed Jun 10, 2024
1 parent a97138c commit 8c218f6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

jobs:
build_on_windows:
publish_windows:
runs-on: windows-latest

steps:
Expand All @@ -25,18 +25,18 @@ jobs:
npm install
npm run postinstall
- name: Package
- name: Package App
run: |
npm run package
- name: Release App
uses: softprops/action-gh-release@v2
with:
files: |
release/build/Tinfy Setup ${{ github.ref_name }}.exe
release/build/Tinfy Setup ${{ github.ref_name }}.exe.blockname
release/build/Tinfy-Setup-${{ github.ref_name }}.exe
release/build/Tinfy-Setup-${{ github.ref_name }}.exe.blockmap
build_on_ubuntu:
publish_linux:
runs-on: ubuntu-latest

steps:
Expand All @@ -49,17 +49,18 @@ jobs:
node-version: 22
cache: npm

- name: Install project dependencies
- name: Install Tinfy dependencies
run: |
npm install
npm run postinstall
- name: Package
- name: Package Tinfy
run: |
npm run package
- name: Release App
- name: Release Tinfy ${{ github.ref_name }}
uses: softprops/action-gh-release@v2
with:
files: |
release/build/Tinfy-v${{ github.ref_name }}.AppImage
release/build/Tinfy-${{ github.ref_name }}.AppImage
release/build/latest.yml
release/build/latest-linux.yml
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
],
"afterSign": ".erb/scripts/notarize.js",
"mac": {
"artifactName": "${productName} Setup v${version}.${ext}",
"artifactName": "${productName}-Setup-v${version}.${ext}",
"target": {
"target": "default",
"arch": [
Expand All @@ -187,7 +187,7 @@
"gatekeeperAssess": false
},
"dmg": {
"artifactName": "${productName} v${version}.${ext}",
"artifactName": "${productName}-v${version}.${ext}",
"contents": [
{
"x": 130,
Expand All @@ -202,13 +202,13 @@
]
},
"win": {
"artifactName": "${productName} Setup v${version}.${ext}",
"artifactName": "${productName}-Setup-v${version}.${ext}",
"target": [
"nsis"
]
},
"linux": {
"artifactName": "${productName} v${version}.${ext}",
"artifactName": "${productName}-v${version}.${ext}",
"target": [
"AppImage"
],
Expand Down

0 comments on commit 8c218f6

Please sign in to comment.