Skip to content

Commit

Permalink
add linux appimage target for electron
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcottle committed Aug 8, 2024
1 parent 949b19e commit c632983
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,41 @@ jobs:
omitDraftDuringUpdate: true
omitNameDuringUpdate: true
artifacts: "dist/*-mac.dmg"

build_linux:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Clone Repo
uses: actions/checkout@v1

- name: Install NodeJS
uses: actions/setup-node@v1
with:
node-version: 18

- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install Python Deps
run: pip install -r requirements.txt

- name: Install NodeJS Deps
run: npm install

- name: Build Electron App
run: npm run dist

- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
with:
draft: true
allowUpdates: true
replacesArtifacts: true
omitDraftDuringUpdate: true
omitNameDuringUpdate: true
artifacts: "dist/*-linux.AppImage"
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
}
]
},
"linux": {
"artifactName": "ReticulumMeshChat-v${version}-${os}.${ext}",
"target": "AppImage"
},
"dmg": {
"writeUpdateInfo": false
},
Expand Down

0 comments on commit c632983

Please sign in to comment.