2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 10:58:59 +00:00

chore: update refs to build command

This commit is contained in:
18alantom 2023-06-21 12:28:20 +05:30
parent a18a4c38ab
commit 207a74706b
6 changed files with 12 additions and 22 deletions

View File

@ -28,4 +28,4 @@ jobs:
env:
CSC_IDENTITY_AUTO_DISCOVERY: false
APPLE_NOTARIZE: 0
run: yarn electron:build -mw --publish never
run: yarn build -mw --publish never

View File

@ -42,7 +42,7 @@ jobs:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
yarn set version 1.22.18
yarn electron:build --mac --publish always
yarn build --mac --publish always
- name: Tar files
run: tar -cvf dist-macOS.tar dist_electron
@ -86,7 +86,7 @@ jobs:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
yarn set version 1.22.18
yarn electron:build --linux --publish always
yarn build --linux --publish always
- name: Tar files
run: tar -cvf dist-linux.tar dist_electron
@ -132,7 +132,7 @@ jobs:
WIN_CSC_LINK: ${{ secrets.WIN_CSC_LINK }}
WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: yarn electron:build --win --publish always
run: yarn build --win --publish always
- name: Tar files
run: tar -cvf dist-windows.tar dist_electron

View File

@ -87,7 +87,7 @@ To run Frappe Books in development mode (with hot reload, etc):
```bash
# start the electron app
yarn electron:serve
yarn dev
```
#### Build
@ -96,7 +96,7 @@ To build Frappe Books and create an installer:
```bash
# start the electron app
yarn electron:build
yarn build
```
**Note**
@ -105,7 +105,7 @@ architecture. To build for other environments (example: for linux from a windows
computer) check the _Building_ section at
[electron.build/cli](https://www.electron.build/cli).
So to build for linux you could use the `--linux` flag like so: `yarn electron:build --linux`.
So to build for linux you could use the `--linux` flag like so: `yarn build --linux`.
## Contributions and Community

View File

@ -31,15 +31,11 @@ let isReload = false;
*/
let electronProcess = null;
/**
* @type {null | import('execa').ExecaChildProcess<string>}
*/
let viteProcess = null;
console.log(`running Frappe Books in dev mode\nroot: ${root}`);
if (!process.argv.includes('--no-renderer')) {
viteProcess = $$`yarn vite`;
}
/**
* @type {import('execa').ExecaChildProcess<string>}
*/
const viteProcess = $$`yarn vite`;
/**
* Create esbuild context that is used
* to [re]build the main process code

View File

@ -9,8 +9,6 @@
"scripts": {
"dev": "node build/scripts/dev.mjs",
"build": "node build/scripts/build.mjs",
"dev:main": "node build/scripts/dev.mjs --no-renderer",
"dev:renderer": "yarn vite",
"release": "scripts/publish-mac-arm.sh",
"postinstall": "electron-rebuild",
"postuninstall": "electron-rebuild",
@ -81,10 +79,6 @@
"singleQuote": true,
"trailingComma": "es5"
},
"engineStrict": true,
"gitHooks": {
"pre-commit": "lint-staged"
},
"homepage": "https://frappebooks.com",
"repository": {
"url": "https://github.com/frappe/books"

View File

@ -42,6 +42,6 @@ export GH_TOKEN=$GH_TOKEN &&
export APPLE_ID=$APPLE_ID &&
export APPLE_TEAM_ID=$APPLE_TEAM_ID &&
export APPLE_APP_SPECIFIC_PASSWORD=$APPLE_APP_SPECIFIC_PASSWORD &&
yarn electron:build --mac --publish=always
yarn build --mac --publish=always
cd ../books