Skip to content

Commit f844c13

Browse files
committed
Add SNAPCRAFT_BUILD_ENVIRONMENT to nightly build and stagePackages for font installation
1 parent 834dacb commit f844c13

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/nightly.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
jobs:
1010
nightly_build_on_linux:
1111
runs-on: ubuntu-22.04
12+
env:
13+
SNAPCRAFT_BUILD_ENVIRONMENT: host
1214
steps:
1315
- uses: actions/checkout@v2
1416
- uses: actions/setup-node@master
@@ -18,6 +20,10 @@ jobs:
1820
run: sudo apt update
1921
- name: install rpm and libarchive
2022
run: sudo apt install rpm libarchive-tools
23+
- name: Install snapcraft
24+
run: sudo snap install snapcraft --classic
25+
- name: Pre-install core22
26+
run: sudo snap install core22
2127
- name: install dependencies
2228
run: npm install
2329
- name: run unit tests

electron-builder.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const config = {
2626
'home',
2727
'removable-media',
2828
],
29+
stagePackages: ['fonts-dejavu-core', 'fontconfig'],
2930
},
3031
fileAssociations: [
3132
{

0 commit comments

Comments
 (0)