From 4dd659a40a259901d3731eb4452b6872e73870eb Mon Sep 17 00:00:00 2001 From: manhtai Date: Fri, 3 Sep 2021 10:38:39 +0700 Subject: [PATCH 1/2] Support arm64 --- .github/workflows/publish.yml | 2 +- README.md | 7 +++++-- package.json | 2 +- src/package.json | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0160ce6..c7f9481 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -52,4 +52,4 @@ jobs: # This is used for uploading release assets to github GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - yarn postinstall && yarn build && yarn electron-builder --publish always + yarn postinstall && yarn build && yarn electron-builder --publish always --arm64 --x64 diff --git a/README.md b/README.md index b7d468f..adb7adb 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,12 @@ - Convert screenshots into a PDF - Auto click on the Next button -## Download +## Installation -- For macOS & Windows: https://github.com/plainlab/plainprinter/releases +For macOS & Windows: https://github.com/plainlab/plainprinter/releases + +- macOS: Get `.dmg` file, open it and drag the app into Applications folder, for M1 mac: get `arm64.dmg` file instead. +- Windows: Get `.exe` file and open it to install. --- diff --git a/package.json b/package.json index 484d2e9..0cc5b19 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "build:renderer": "cross-env NODE_ENV=production webpack --config ./.erb/configs/webpack.config.renderer.prod.babel.js", "rebuild": "electron-rebuild --parallel --types prod,dev,optional --module-dir src", "lint": "cross-env NODE_ENV=development eslint . --cache --ext .js,.jsx,.ts,.tsx", - "package": "rm -rf src/dist && yarn build && electron-builder build --publish never --mac", + "package": "rm -rf src/dist && yarn build && electron-builder build --publish never --x64 --arm64", "release": "rm -rf src/dist && yarn build && electron-builder build --publish always", "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", "start": "node -r @babel/register ./.erb/scripts/CheckPortInUse.js && yarn start:renderer", diff --git a/src/package.json b/src/package.json index 992dc6d..13f17a2 100644 --- a/src/package.json +++ b/src/package.json @@ -1,7 +1,7 @@ { "name": "plainprinter", "productName": "PlainPrinter", - "version": "0.0.2", + "version": "0.0.3", "description": "Plain screen printer", "main": "./main.prod.js", "author": { From 3e5e5c5565f006b79867cd4e2d05769ce25a15f9 Mon Sep 17 00:00:00 2001 From: manhtai Date: Fri, 17 Sep 2021 10:16:42 +0700 Subject: [PATCH 2/2] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index b7d468f..6bf3320 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,10 @@ - For macOS & Windows: https://github.com/plainlab/plainprinter/releases +## CLI version + +https://github.com/manhtai/vitalsource-printer + --- © 2021 PlainLab