diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 23d5c47..7cb79c5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,11 +7,8 @@ on: workflow_dispatch: jobs: - publish: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [windows-latest, ubuntu-latest] + build_on_windows: + runs-on: windows-latest steps: - name: Checkout git repo @@ -20,11 +17,49 @@ jobs: - name: Install Node.js and NPM uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 22 cache: npm - - name: Build/release Electron app - uses: samuelmeuli/action-electron-builder@v1 + - name: Install project dependencies + run: | + npm install + npm run postinstall + + - name: Package + 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 + + build_on_ubuntu: + runs-on: ubuntu-latest + + steps: + - name: Checkout git repo + uses: actions/checkout@v3 + + - name: Install Node.js and NPM + uses: actions/setup-node@v3 + with: + node-version: 22 + cache: npm + + - name: Install project dependencies + run: | + npm install + npm run postinstall + + - name: Package + run: | + npm run package + + - name: Release App + uses: softprops/action-gh-release@v2 with: - github_token: ${{ secrets.github_token }} - release: ${{ startsWith(github.ref, 'refs/tags/v') }} + files: | + release/build/Tinfy-v${{ github.ref_name }}.AppImage diff --git a/package.json b/package.json index 5810c10..3119f98 100644 --- a/package.json +++ b/package.json @@ -172,6 +172,7 @@ ], "afterSign": ".erb/scripts/notarize.js", "mac": { + "artifactName": "${productName} Setup v${version}.${ext}", "target": { "target": "default", "arch": [ @@ -186,6 +187,7 @@ "gatekeeperAssess": false }, "dmg": { + "artifactName": "${productName} v${version}.${ext}", "contents": [ { "x": 130, @@ -200,11 +202,13 @@ ] }, "win": { + "artifactName": "${productName} Setup v${version}.${ext}", "target": [ "nsis" ] }, "linux": { + "artifactName": "${productName} v${version}.${ext}", "target": [ "AppImage" ], diff --git a/release/app/package.json b/release/app/package.json index 43320d1..9ea1ef9 100644 --- a/release/app/package.json +++ b/release/app/package.json @@ -1,6 +1,6 @@ { "name": "tinfy", - "version": "0.0.1", + "version": "0.0.2", "description": "A Desktop App to tinyfi images and prepare them for the web.", "license": "MIT", "author": {