mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-09 05:09:39 +00:00
Add flatpak builds
This commit is contained in:
9
.github/workflows/build-and-release.yaml
vendored
9
.github/workflows/build-and-release.yaml
vendored
@@ -39,10 +39,15 @@ jobs:
|
|||||||
node-version: v18.19.0
|
node-version: v18.19.0
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install builder dependencies
|
- name: Fix apt and install builder dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
sudo rm /var/lib/apt/lists/* || true
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install flatpak -y
|
||||||
|
sudo apt install flatpak-builder -y
|
||||||
sudo apt install elfutils -y
|
sudo apt install elfutils -y
|
||||||
|
flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
git config --global --add protocol.file.allow always
|
git config --global --add protocol.file.allow always
|
||||||
- name: Build the app (Linux)
|
- name: Build the app (Linux)
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -54,7 +59,7 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd release
|
cd release
|
||||||
find . -type f \( -name "*.AppImage" -o -name "latest-linux.yml" \) -print0 | tar -czvf bridge-linux.tar.gz --null -T -
|
find . -type f \( -name "*.AppImage" -o -name "*.flatpak" -o -name "latest-linux.yml" \) -print0 | tar -czvf bridge-linux.tar.gz --null -T -
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: bridge-linux
|
name: bridge-linux
|
||||||
|
|||||||
8
.github/workflows/build-on-pr.yaml
vendored
8
.github/workflows/build-on-pr.yaml
vendored
@@ -27,11 +27,15 @@ jobs:
|
|||||||
node-version: v18.19.0
|
node-version: v18.19.0
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install builder dependencies
|
- name: Fix apt and install builder dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
sudo rm /var/lib/apt/lists/* || true
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install flatpak -y
|
||||||
|
sudo apt install flatpak-builder -y
|
||||||
sudo apt install elfutils -y
|
sudo apt install elfutils -y
|
||||||
git config --global --add protocol.file.allow always
|
flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
- name: Build the app
|
- name: Build the app
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -36,7 +36,8 @@
|
|||||||
"linux": {
|
"linux": {
|
||||||
"compression": "maximum",
|
"compression": "maximum",
|
||||||
"target": [
|
"target": [
|
||||||
"AppImage"
|
"AppImage",
|
||||||
|
"flatpak"
|
||||||
],
|
],
|
||||||
"category": "utility"
|
"category": "utility"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user