Skip to content

Commit 76f7e77

Browse files
committed
Release for arm
1 parent 13d9709 commit 76f7e77

File tree

5 files changed

+10
-30
lines changed

5 files changed

+10
-30
lines changed

.erb/scripts/Notarize.js

+2-26
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,4 @@
1-
const { notarize } = require('electron-notarize');
2-
const { build } = require('../../package.json');
3-
41
exports.default = async function notarizeMacos(context) {
5-
const { electronPlatformName, appOutDir } = context;
6-
if (electronPlatformName !== 'darwin') {
7-
return;
8-
}
9-
10-
if (!process.env.CI) {
11-
console.warn('Skipping notarizing step. Packaging is not running in CI');
12-
return;
13-
}
14-
15-
if (!('APPLE_ID' in process.env && 'APPLE_ID_PASS' in process.env)) {
16-
console.warn('Skipping notarizing step. APPLE_ID and APPLE_ID_PASS env variables must be set');
17-
return;
18-
}
19-
20-
const appName = context.packager.appInfo.productFilename;
21-
22-
await notarize({
23-
appBundleId: build.appId,
24-
appPath: `${appOutDir}/${appName}.app`,
25-
appleId: process.env.APPLE_ID,
26-
appleIdPassword: process.env.APPLE_ID_PASS,
27-
});
2+
console.warn('Skipping notarizing step.');
3+
return;
284
};

.github/workflows/publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
os: [ macos-latest ]
14+
os: [macos-latest]
1515

1616
steps:
1717
- name: Checkout git repo
@@ -52,4 +52,4 @@ jobs:
5252
# This is used for uploading release assets to github
5353
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5454
run: |
55-
yarn postinstall && yarn build && yarn electron-builder --publish always --win --mac --linux
55+
yarn postinstall && yarn build && yarn electron-builder --publish always --win --mac --linux --arm64 --x64

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646

4747
Download binary file for your system on the releases page: https://github.com/plainlab/plainbelt/releases.
4848

49+
- macOS: Get `.dmg` file, open it and drag the app into Applications folder, for M1 mac: get `arm64.dmg` file instead.
50+
- Windows: Get `.exe` file and open it to install.
51+
- Linux: Get `.AppImage` file to install, for ARM laptop: get `arm64.AppImage` file instead.
52+
4953
## Development setup
5054

5155
```

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"rebuild": "electron-rebuild --parallel --types prod,dev,optional --module-dir src",
1010
"lint": "cross-env NODE_ENV=development eslint . --cache --ext .js,.jsx,.ts,.tsx",
1111
"package": "rm -rf src/dist && yarn build && electron-builder build --publish never",
12-
"release": "rm -rf src/dist && yarn build && electron-builder build --publish always --win --mac --linux",
12+
"release": "rm -rf src/dist && yarn build && electron-builder build --publish always --win --mac --linux --arm64 --x64",
1313
"postinstall": "node -r @babel/register .erb/scripts/CheckNativeDep.js && electron-builder install-app-deps && yarn cross-env NODE_ENV=development webpack --config ./.erb/configs/webpack.config.renderer.dev.dll.babel.js && opencollective-postinstall && yarn-deduplicate yarn.lock",
1414
"start": "node -r @babel/register ./.erb/scripts/CheckPortInUse.js && yarn start:renderer",
1515
"start:main": "cross-env NODE_ENV=development electron -r ./.erb/scripts/BabelRegister ./src/main.dev.ts",

src/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "plainbelt",
33
"productName": "PlainBelt",
4-
"version": "0.0.10",
4+
"version": "0.0.11",
55
"description": "A plain toolbelt for developers",
66
"main": "./main.prod.js",
77
"author": {

0 commit comments

Comments
 (0)