mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
mac build cleanup
This commit is contained in:
parent
8646cf7571
commit
53361e3ca3
8
.github/workflows/build-app-beta.yaml
vendored
8
.github/workflows/build-app-beta.yaml
vendored
@ -42,7 +42,6 @@ jobs:
|
|||||||
if: matrix.os == 'ubuntu-18.04'
|
if: matrix.os == 'ubuntu-18.04'
|
||||||
uses: samuelmeuli/action-snapcraft@v1
|
uses: samuelmeuli/action-snapcraft@v1
|
||||||
- name: Publish
|
- name: Publish
|
||||||
# if: matrix.os != 'macOS-10.15'
|
|
||||||
run: |
|
run: |
|
||||||
yarn run build:app
|
yarn run build:app
|
||||||
env:
|
env:
|
||||||
@ -50,13 +49,6 @@ jobs:
|
|||||||
WIN_CSC_LINK: ${{ secrets.WINCERT_CERTIFICATE }}
|
WIN_CSC_LINK: ${{ secrets.WINCERT_CERTIFICATE }}
|
||||||
WIN_CSC_KEY_PASSWORD: ${{ secrets.WINCERT_PASSWORD }}
|
WIN_CSC_KEY_PASSWORD: ${{ secrets.WINCERT_PASSWORD }}
|
||||||
|
|
||||||
# - name: Publish Mac
|
|
||||||
# if: matrix.os == 'macOS-10.15'
|
|
||||||
# run: |
|
|
||||||
# yarn run build:app:mac
|
|
||||||
# env:
|
|
||||||
# GH_TOKEN: ${{ secrets.GH_TOKEN }} # token for electron publish
|
|
||||||
|
|
||||||
- name: Save snap login
|
- name: Save snap login
|
||||||
if: matrix.os == 'ubuntu-18.04'
|
if: matrix.os == 'ubuntu-18.04'
|
||||||
run: 'echo "$SNAPCRAFT_LOGIN" > snapcraft.login'
|
run: 'echo "$SNAPCRAFT_LOGIN" > snapcraft.login'
|
||||||
|
@ -92,7 +92,6 @@
|
|||||||
"start:local": "cross-env electron .",
|
"start:local": "cross-env electron .",
|
||||||
"dist": "electron-builder",
|
"dist": "electron-builder",
|
||||||
"build": "cd ../packages/api && yarn build && cd ../web && yarn build && cd ../../app && yarn dist",
|
"build": "cd ../packages/api && yarn build && cd ../web && yarn build && cd ../../app && yarn dist",
|
||||||
"build:mac": "cd ../packages/api && yarn build && cd ../web && yarn build && cd ../../app && node setMacPlatform x64 && yarn dist && node setMacPlatform arm64 && yarn dist",
|
|
||||||
"build:local": "cd ../packages/api && yarn build && cd ../web && yarn build && cd ../../app && yarn predist",
|
"build:local": "cd ../packages/api && yarn build && cd ../web && yarn build && cd ../../app && yarn predist",
|
||||||
"postinstall": "yarn rebuild && patch-package",
|
"postinstall": "yarn rebuild && patch-package",
|
||||||
"rebuild": "electron-builder install-app-deps",
|
"rebuild": "electron-builder install-app-deps",
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
const fs = require('fs');
|
|
||||||
|
|
||||||
const text = fs.readFileSync('package.json', { encoding: 'utf-8' });
|
|
||||||
const json = JSON.parse(text);
|
|
||||||
|
|
||||||
json.build.mac.target.arch = process.argv[2];
|
|
||||||
|
|
||||||
fs.writeFileSync('package.json', JSON.stringify(json, null, 2), { encoding: 'utf-8' });
|
|
@ -25,7 +25,6 @@
|
|||||||
"build:tools": "yarn workspace dbgate-tools build",
|
"build:tools": "yarn workspace dbgate-tools build",
|
||||||
"build:lib": "yarn build:querysplitter && yarn build:tools && yarn build:sqltree && yarn build:filterparser && yarn build:datalib",
|
"build:lib": "yarn build:querysplitter && yarn build:tools && yarn build:sqltree && yarn build:filterparser && yarn build:datalib",
|
||||||
"build:app": "yarn plugins:copydist && cd app && yarn install && yarn build",
|
"build:app": "yarn plugins:copydist && cd app && yarn install && yarn build",
|
||||||
"build:app:mac": "yarn plugins:copydist && cd app && yarn install && yarn build:mac",
|
|
||||||
"build:api": "yarn workspace dbgate-api build",
|
"build:api": "yarn workspace dbgate-api build",
|
||||||
"build:web:docker": "yarn workspace dbgate-web build",
|
"build:web:docker": "yarn workspace dbgate-web build",
|
||||||
"build:plugins:frontend": "workspaces-run --only=\"dbgate-plugin-*\" -- yarn build:frontend",
|
"build:plugins:frontend": "workspaces-run --only=\"dbgate-plugin-*\" -- yarn build:frontend",
|
||||||
|
Loading…
Reference in New Issue
Block a user