Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Commit a390a80

Browse files
committed
feat(linux): publish Linux builds as tarball (.tar.gz)
[skip ci]
1 parent 322ec55 commit a390a80

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

.github/actions/prepare_for_build/action.yml

+2
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ runs:
157157
shell: bash
158158
run: |
159159
flutter config --enable-linux-desktop
160+
sudo apt-get update -y
161+
sudo apt-get install -y ninja-build libgtk-3-dev
160162
161163
- name: Setup macOS Platform
162164
if: ${{ inputs.platform == 'macos' }}

.github/workflows/build_linux.yml

+21
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,24 @@ jobs:
2525
with:
2626
name: linux-snapcraft
2727
path: ${{ github.workspace }}/output
28+
29+
build-tarball:
30+
name: Tarball Archive
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Setup Environment
34+
uses: JagandeepBrar/LunaSea/.github/actions/prepare_for_build@master
35+
with:
36+
platform: linux
37+
38+
- name: Build LunaSea
39+
run: flutter build linux
40+
41+
- name: Prepare Artifact
42+
run: tar czf output/lunasea-linux-amd64.tar.gz -C build/linux/x64/release/bundle/ .
43+
44+
- name: Upload Artifact
45+
uses: actions/upload-artifact@v3
46+
with:
47+
name: linux-tarball
48+
path: ${{ github.workspace }}/output

.github/workflows/publish_s3.yml

+6
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ jobs:
4747
name: ios-appstore-package
4848
path: ${{ github.workspace }}/output
4949

50+
- name: Download Linux Tarball
51+
uses: actions/download-artifact@v3
52+
with:
53+
name: linux-tarball
54+
path: ${{ github.workspace }}/output
55+
5056
- name: Download Linux Snap
5157
uses: actions/download-artifact@v3
5258
with:

0 commit comments

Comments
 (0)