diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e233d90..9817a89 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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" diff --git a/package.json b/package.json index 13b70a5..8c1844a 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,10 @@ } ] }, + "linux": { + "artifactName": "ReticulumMeshChat-v${version}-${os}.${ext}", + "target": "AppImage" + }, "dmg": { "writeUpdateInfo": false },