mirror of
https://github.com/nocodb/nocodb.git
synced 2026-02-01 22:08:33 +00:00
chore: downgrade sqlite version while building executables (#8435)
Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
4
.github/workflows/release-executables.yml
vendored
4
.github/workflows/release-executables.yml
vendored
@@ -68,6 +68,10 @@ jobs:
|
||||
- name : Install nocodb, other dependencies and build executables
|
||||
run: |
|
||||
cd ./scripts/pkg-executable
|
||||
|
||||
# downgrade sqlite3 to 5.1.6 until build related issues are resolved
|
||||
# https://github.com/TryGhost/node-sqlite3/issues/1748
|
||||
node ../downgradeSqlite.js
|
||||
|
||||
# Install nocodb version based on provided tag name
|
||||
npm i -E nocodb@${{ github.event.inputs.tag || inputs.tag }}
|
||||
|
||||
13
scripts/downgradeSqlite.js
Normal file
13
scripts/downgradeSqlite.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const fs = require('fs')
|
||||
const path = require('path');
|
||||
|
||||
const filePath = path.join(__dirname, '..', 'scripts','pkg-executable','package.json');
|
||||
|
||||
const nocodbSdkPackage = JSON.parse(fs.readFileSync(filePath, 'utf8'))
|
||||
|
||||
// downgrade sqlite3 to 5.1.6 until build related issues are resolved
|
||||
// https://github.com/TryGhost/node-sqlite3/issues/1748
|
||||
nocodbSdkPackage.overrides = nocodbSdkPackage.overrides || {};
|
||||
nocodbSdkPackage.overrides.sqlite3 = "5.1.6"
|
||||
|
||||
fs.writeFileSync(filePath, JSON.stringify(nocodbSdkPackage, null, 2), 'utf8');
|
||||
Reference in New Issue
Block a user