Skip to content

Commit

Permalink
Attempt release
Browse files Browse the repository at this point in the history
  • Loading branch information
aokellermann committed Oct 14, 2023
1 parent 292a33e commit 94465ad
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 55 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/gemfury-upload.yml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/notion-repackaged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install moreutils
run: sudo apt-get install -y moreutils
run: sudo apt-get install -y moreutils dos2unix
- name: Download official Windows build
env:
NOTION_DOWNLOAD_HASH: ${{ needs.preload-variables.outputs.notion_download_hash }}
Expand All @@ -84,7 +84,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install icnsutils and moreutils
run: sudo apt-get install -y icnsutils moreutils
run: sudo apt-get install -y icnsutils moreutils dos2unix
- name: Force to use HTTPS instead of SSH
run: git config --global url."https://github.com/".insteadOf "[email protected]:"
- name: Retrieve saved vanilla sources
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
- name: Retrieve saved sources
uses: actions/download-artifact@v2
with:
Expand All @@ -154,7 +154,7 @@ jobs:
run: npx patch-package
- name: Install electron and electron-builder
working-directory: ${{ matrix.edition }}-src
run: npm install electron@11 electron-builder --save-dev
run: npm install electron@25 electron-builder --save-dev
- name: Run electron-builder
working-directory: ${{ matrix.edition }}-src
env:
Expand Down
20 changes: 18 additions & 2 deletions electron-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const fpmOptions = [
`--conflicts=${conflictProductId}`,
];

const combineTargetAndArch = (targets, architectures = ['x64']) =>
const combineTargetAndArch = (targets, architectures = ['x64', 'arm64']) =>
targets.map((target) => ({ target, arch: architectures }));

// realistically Auto Update only works for Windows
Expand Down Expand Up @@ -64,13 +64,29 @@ module.exports = {
StartupNotify: 'true',
StartupWMClass: productId,
},
target: combineTargetAndArch(['pacman', 'zip']),
target: combineTargetAndArch(['AppImage', 'deb', 'rpm', 'pacman', 'zip']),
publish: getPublishProviders('linux'),
},
nsis: {
installerIcon: 'icon.ico',
oneClick: false,
perMachine: false,
},
deb: {
fpm: fpmOptions,
depends: [
'libgtk-3-0',
'libnotify4',
'libnss3',
'libxss1',
'libxtst6',
'xdg-utils',
'libatspi2.0-0',
'libuuid1',
'libsecret-1-0',
/* 'libappindicator3-1', */
],
},
pacman: { fpm: fpmOptions },
rpm: { fpm: fpmOptions },
};

0 comments on commit 94465ad

Please sign in to comment.