Skip to content

Commit 3175cb3

Browse files
committed
fix: pls work thx
1 parent cb1ef66 commit 3175cb3

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ jobs:
3434
# the first number is used for pushes to the main branch (releases)
3535
# the second number is used for pull requests (to keep the storage usage low)
3636
ARTIFACT_RETENTION_DAYS: ${{ github.event_name == 'push' && github.ref_name == 'main' && 4 || 1 }}
37+
# cache directory for electron-builder files
38+
ELECTRON_BUILDER_CACHE: ${{ github.workspace }}/.cache/electron-builder
3739

3840
strategy:
3941
# don't cancel other jobs when one fails
@@ -59,9 +61,9 @@ jobs:
5961
with:
6062
node-version: ${{ matrix.node-version }}
6163

62-
- name: Set up dependencies
64+
- name: Set up Linux dependencies
6365
if: ${{ runner.os == 'Linux' }}
64-
# ensure packages can be built for deb, rpm, snap, pacman and flatpak
66+
# ensure packages can be built for deb, rpm, snap, pacman
6567
run: |
6668
sudo apt update
6769
sudo apt install -y \
@@ -70,8 +72,7 @@ jobs:
7072
dpkg-dev \
7173
debhelper \
7274
devscripts \
73-
rpm \
74-
flatpak-builder
75+
rpm
7576
sudo snap install snapcraft --classic
7677
7778
- name: Set up pnpm
@@ -95,6 +96,14 @@ jobs:
9596
- name: Install dependencies
9697
run: pnpm i
9798

99+
- name: Set up electron-builder cache
100+
uses: actions/cache@v4
101+
with:
102+
path: ${{ env.ELECTRON_BUILDER_CACHE }}
103+
key: ${{ runner.os }}-electron-builder-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/electron-builder.json5') }}
104+
restore-keys: |
105+
${{ runner.os }}-electron-builder-
106+
98107
- name: Build on ${{ runner.os }}
99108
run: pnpm build
100109

electron-builder.json5

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
"rpm",
4747
"snap",
4848
"pacman",
49-
"flatpak",
5049
],
5150
artifactName: "${productName}-${version}-Linux.${ext}",
5251
category: "Utility",

0 commit comments

Comments
 (0)