mirror of
https://github.com/frappe/books.git
synced 2025-04-02 00:01:51 +00:00
chore: update refs to build command
This commit is contained in:
parent
a18a4c38ab
commit
207a74706b
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -28,4 +28,4 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CSC_IDENTITY_AUTO_DISCOVERY: false
|
CSC_IDENTITY_AUTO_DISCOVERY: false
|
||||||
APPLE_NOTARIZE: 0
|
APPLE_NOTARIZE: 0
|
||||||
run: yarn electron:build -mw --publish never
|
run: yarn build -mw --publish never
|
||||||
|
6
.github/workflows/publish.yml
vendored
6
.github/workflows/publish.yml
vendored
@ -42,7 +42,7 @@ jobs:
|
|||||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
yarn set version 1.22.18
|
yarn set version 1.22.18
|
||||||
yarn electron:build --mac --publish always
|
yarn build --mac --publish always
|
||||||
|
|
||||||
- name: Tar files
|
- name: Tar files
|
||||||
run: tar -cvf dist-macOS.tar dist_electron
|
run: tar -cvf dist-macOS.tar dist_electron
|
||||||
@ -86,7 +86,7 @@ jobs:
|
|||||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
yarn set version 1.22.18
|
yarn set version 1.22.18
|
||||||
yarn electron:build --linux --publish always
|
yarn build --linux --publish always
|
||||||
|
|
||||||
- name: Tar files
|
- name: Tar files
|
||||||
run: tar -cvf dist-linux.tar dist_electron
|
run: tar -cvf dist-linux.tar dist_electron
|
||||||
@ -132,7 +132,7 @@ jobs:
|
|||||||
WIN_CSC_LINK: ${{ secrets.WIN_CSC_LINK }}
|
WIN_CSC_LINK: ${{ secrets.WIN_CSC_LINK }}
|
||||||
WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }}
|
WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }}
|
||||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
run: yarn electron:build --win --publish always
|
run: yarn build --win --publish always
|
||||||
|
|
||||||
- name: Tar files
|
- name: Tar files
|
||||||
run: tar -cvf dist-windows.tar dist_electron
|
run: tar -cvf dist-windows.tar dist_electron
|
||||||
|
@ -87,7 +87,7 @@ To run Frappe Books in development mode (with hot reload, etc):
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# start the electron app
|
# start the electron app
|
||||||
yarn electron:serve
|
yarn dev
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Build
|
#### Build
|
||||||
@ -96,7 +96,7 @@ To build Frappe Books and create an installer:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# start the electron app
|
# start the electron app
|
||||||
yarn electron:build
|
yarn build
|
||||||
```
|
```
|
||||||
|
|
||||||
**Note**
|
**Note**
|
||||||
@ -105,7 +105,7 @@ architecture. To build for other environments (example: for linux from a windows
|
|||||||
computer) check the _Building_ section at
|
computer) check the _Building_ section at
|
||||||
[electron.build/cli](https://www.electron.build/cli).
|
[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
|
## Contributions and Community
|
||||||
|
|
||||||
|
@ -31,15 +31,11 @@ let isReload = false;
|
|||||||
*/
|
*/
|
||||||
let electronProcess = null;
|
let electronProcess = null;
|
||||||
|
|
||||||
/**
|
|
||||||
* @type {null | import('execa').ExecaChildProcess<string>}
|
|
||||||
*/
|
|
||||||
let viteProcess = null;
|
|
||||||
|
|
||||||
console.log(`running Frappe Books in dev mode\nroot: ${root}`);
|
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
|
* Create esbuild context that is used
|
||||||
* to [re]build the main process code
|
* to [re]build the main process code
|
||||||
|
@ -9,8 +9,6 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "node build/scripts/dev.mjs",
|
"dev": "node build/scripts/dev.mjs",
|
||||||
"build": "node build/scripts/build.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",
|
"release": "scripts/publish-mac-arm.sh",
|
||||||
"postinstall": "electron-rebuild",
|
"postinstall": "electron-rebuild",
|
||||||
"postuninstall": "electron-rebuild",
|
"postuninstall": "electron-rebuild",
|
||||||
@ -81,10 +79,6 @@
|
|||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
"trailingComma": "es5"
|
"trailingComma": "es5"
|
||||||
},
|
},
|
||||||
"engineStrict": true,
|
|
||||||
"gitHooks": {
|
|
||||||
"pre-commit": "lint-staged"
|
|
||||||
},
|
|
||||||
"homepage": "https://frappebooks.com",
|
"homepage": "https://frappebooks.com",
|
||||||
"repository": {
|
"repository": {
|
||||||
"url": "https://github.com/frappe/books"
|
"url": "https://github.com/frappe/books"
|
||||||
|
@ -42,6 +42,6 @@ export GH_TOKEN=$GH_TOKEN &&
|
|||||||
export APPLE_ID=$APPLE_ID &&
|
export APPLE_ID=$APPLE_ID &&
|
||||||
export APPLE_TEAM_ID=$APPLE_TEAM_ID &&
|
export APPLE_TEAM_ID=$APPLE_TEAM_ID &&
|
||||||
export APPLE_APP_SPECIFIC_PASSWORD=$APPLE_APP_SPECIFIC_PASSWORD &&
|
export APPLE_APP_SPECIFIC_PASSWORD=$APPLE_APP_SPECIFIC_PASSWORD &&
|
||||||
yarn electron:build --mac --publish=always
|
yarn build --mac --publish=always
|
||||||
|
|
||||||
cd ../books
|
cd ../books
|
||||||
|
Loading…
x
Reference in New Issue
Block a user