mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-03 16:23:58 +00:00
remove msnodesqlv8 from mac+linux build
This commit is contained in:
3
.github/workflows/build-app-beta.yaml
vendored
3
.github/workflows/build-app-beta.yaml
vendored
@@ -27,6 +27,9 @@ jobs:
|
|||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 14.x
|
node-version: 14.x
|
||||||
|
- name: yarn adjustPackageJson
|
||||||
|
run: |
|
||||||
|
yarn adjustPackageJson
|
||||||
- name: yarn install
|
- name: yarn install
|
||||||
run: |
|
run: |
|
||||||
yarn install
|
yarn install
|
||||||
|
|||||||
3
.github/workflows/build-app.yaml
vendored
3
.github/workflows/build-app.yaml
vendored
@@ -31,6 +31,9 @@ jobs:
|
|||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 14.x
|
node-version: 14.x
|
||||||
|
- name: yarn adjustPackageJson
|
||||||
|
run: |
|
||||||
|
yarn adjustPackageJson
|
||||||
- name: yarn install
|
- name: yarn install
|
||||||
run: |
|
run: |
|
||||||
# yarn --version
|
# yarn --version
|
||||||
|
|||||||
12
adjustPackageJson.js
Normal file
12
adjustPackageJson.js
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
const fs = require('fs');
|
||||||
|
|
||||||
|
function adjustFile(file) {
|
||||||
|
const json = JSON.parse(fs.readFileSync(file, { encoding: 'utf-8' }));
|
||||||
|
if (process.platform != 'win32') {
|
||||||
|
delete json.optionalDependencies.msnodesqlv8;
|
||||||
|
}
|
||||||
|
fs.writeFileSync(file, JSON.stringify(json, null, 2), 'utf-8');
|
||||||
|
}
|
||||||
|
|
||||||
|
adjustFile('package.json');
|
||||||
|
adjustFile('app/package.json');
|
||||||
@@ -36,6 +36,7 @@
|
|||||||
"start:app:local": "cd app && yarn start:local",
|
"start:app:local": "cd app && yarn start:local",
|
||||||
"setCurrentVersion": "node setCurrentVersion",
|
"setCurrentVersion": "node setCurrentVersion",
|
||||||
"generatePadFile": "node generatePadFile",
|
"generatePadFile": "node generatePadFile",
|
||||||
|
"adjustPackageJson": "node adjustPackageJson",
|
||||||
"fillNativeModules": "node fillNativeModules",
|
"fillNativeModules": "node fillNativeModules",
|
||||||
"fillNativeModulesElectron": "node fillNativeModules --electron",
|
"fillNativeModulesElectron": "node fillNativeModules --electron",
|
||||||
"fillPackagedPlugins": "node fillPackagedPlugins",
|
"fillPackagedPlugins": "node fillPackagedPlugins",
|
||||||
|
|||||||
Reference in New Issue
Block a user