Skip to content

Commit

Permalink
ci: fix linux build config
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel committed Sep 20, 2024
1 parent d722b36 commit abc819a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,10 @@ jobs:
include:
- os: ubuntu-latest
platform: linux
ext: tar.gz
- os: macos-latest
platform: darwin
ext: dmg
- os: windows-latest
platform: win32
ext: exe
env:
PKG_VERSION: ${{needs.prepare.outputs.pkg_version}}

Expand Down Expand Up @@ -141,15 +138,16 @@ jobs:
run: |
Remove-Item dist/electron/Packaged/ietf-draftforge-win-${{ env.PKG_VERSION }}.exe
- name: Upload Build Artifact
- name: Upload Windows Build Artifact
if: ${{ matrix.platform == 'win32' }}
id: artifactupload
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform }}-build
path: "dist/electron/Packaged/*.${{ matrix.ext }}"
path: "dist/electron/Packaged/*.exe"

- id: signpath
name: Sign Windows Executables
if: ${{ matrix.platform == 'win32' }}
uses: signpath/github-action-submit-signing-request@v1
with:
Expand All @@ -161,7 +159,7 @@ jobs:
wait-for-completion: true
output-artifact-directory: signed-build

- name: Add Signed Package to Release
- name: Add Signed Windows Package to Release
if: ${{ matrix.platform == 'win32' }}
uses: ncipollo/[email protected]
with:
Expand All @@ -171,7 +169,7 @@ jobs:
omitBody: true
tag: ${{ env.PKG_VERSION }}
name: ${{ env.PKG_VERSION }}
artifacts: "signed-build/*.${{ matrix.ext }},dist/electron/Packaged/latest.yml"
artifacts: "signed-build/*.exe,dist/electron/Packaged/latest.yml"
token: ${{ secrets.GITHUB_TOKEN }}

- name: Add Package to Release
Expand All @@ -184,7 +182,7 @@ jobs:
omitBody: true
tag: ${{ env.PKG_VERSION }}
name: ${{ env.PKG_VERSION }}
artifacts: "dist/electron/Packaged/*.${{ matrix.ext }},dist/electron/Packaged/latest*.yml"
artifacts: "dist/electron/Packaged/*.+(dmg|AppImage|deb|rpm|tar.gz),dist/electron/Packaged/latest*.yml"
token: ${{ secrets.GITHUB_TOKEN }}

- name: Purge signing certs
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"version": "0.0.1",
"description": "IETF DraftForge",
"productName": "DraftForge",
"author": "IETF Tools",
"author": {
"name": "IETF Tools Team",
"email": "[email protected]",
"url": "https://www.ietf.org"
},
"private": true,
"type": "module",
"repository": {
Expand Down
7 changes: 7 additions & 0 deletions quasar.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ export default configure((/* ctx */) => {
linux: {
electronLanguages: ['en-US'],
target: [
{
target: 'AppImage',
arch: ['x64', 'arm64']
},
{
target: 'deb',
arch: ['x64', 'arm64']
Expand All @@ -316,6 +320,9 @@ export default configure((/* ctx */) => {
publishAutoUpdate: true
}
]
},
appImage: {
category: 'Office'
}
}
}
Expand Down

0 comments on commit abc819a

Please sign in to comment.