mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-22 03:26:09 +03:00
autorebuild native modules
This commit is contained in:
parent
a434220ff0
commit
3e2f93c226
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@ -53,14 +53,7 @@ jobs:
|
|||||||
- name: Install deps
|
- name: Install deps
|
||||||
run: |
|
run: |
|
||||||
sudo npm i -g yarn@1.22.1
|
sudo npm i -g yarn@1.22.1
|
||||||
cd app
|
|
||||||
yarn --network-timeout 1000000
|
yarn --network-timeout 1000000
|
||||||
cd ..
|
|
||||||
rm app/node_modules/.yarn-integrity
|
|
||||||
yarn --network-timeout 1000000
|
|
||||||
|
|
||||||
- name: Build native deps
|
|
||||||
run: scripts/build-native.js
|
|
||||||
env:
|
env:
|
||||||
ARCH: ${{matrix.arch}}
|
ARCH: ${{matrix.arch}}
|
||||||
|
|
||||||
@ -150,14 +143,7 @@ jobs:
|
|||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install libarchive-tools zsh
|
sudo apt-get install libarchive-tools zsh
|
||||||
npm i -g yarn@1.19.1
|
npm i -g yarn@1.19.1
|
||||||
cd app
|
|
||||||
yarn --network-timeout 1000000
|
yarn --network-timeout 1000000
|
||||||
cd ..
|
|
||||||
rm app/node_modules/.yarn-integrity
|
|
||||||
yarn --network-timeout 1000000
|
|
||||||
|
|
||||||
- name: Build native deps
|
|
||||||
run: scripts/build-native.js
|
|
||||||
|
|
||||||
- name: Webpack
|
- name: Webpack
|
||||||
run: yarn run build
|
run: yarn run build
|
||||||
@ -269,7 +255,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
npm i -g yarn@1.19.1
|
npm i -g yarn@1.19.1
|
||||||
yarn --network-timeout 1000000
|
yarn --network-timeout 1000000
|
||||||
node scripts/build-native.js
|
|
||||||
yarn run build
|
yarn run build
|
||||||
node scripts/prepackage-plugins.js
|
node scripts/prepackage-plugins.js
|
||||||
env:
|
env:
|
||||||
|
@ -11,7 +11,6 @@ First, install the dependencies:
|
|||||||
```
|
```
|
||||||
# macOS:
|
# macOS:
|
||||||
yarn
|
yarn
|
||||||
./scripts/build-native.js
|
|
||||||
```
|
```
|
||||||
|
|
||||||
**Note: For compiling for Linux armv7l, you need to downgrade electron to 17.0.0 in package.json present in root directory of tabby source**
|
**Note: For compiling for Linux armv7l, you need to downgrade electron to 17.0.0 in package.json present in root directory of tabby source**
|
||||||
@ -20,14 +19,12 @@ yarn
|
|||||||
# Linux (Debian/Ubuntu here as an example)
|
# Linux (Debian/Ubuntu here as an example)
|
||||||
sudo apt install libfontconfig-dev libsecret-1-dev libarchive-tools libnss3 libatk1.0-0 libatk-bridge2.0-0 libgdk-pixbuf2.0-0 libgtk-3-0 libgbm1 cmake
|
sudo apt install libfontconfig-dev libsecret-1-dev libarchive-tools libnss3 libatk1.0-0 libatk-bridge2.0-0 libgdk-pixbuf2.0-0 libgtk-3-0 libgbm1 cmake
|
||||||
yarn
|
yarn
|
||||||
./scripts/build-native.js
|
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
# Windows:
|
# Windows:
|
||||||
npm -g install windows-build-tools
|
npm -g install windows-build-tools
|
||||||
yarn
|
yarn
|
||||||
node scripts\build-native.js
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Now, check if your build is working:
|
Now, check if your build is working:
|
||||||
|
28
appveyor.yml
28
appveyor.yml
@ -1,28 +0,0 @@
|
|||||||
os: Visual Studio 2017
|
|
||||||
|
|
||||||
platform:
|
|
||||||
- x64
|
|
||||||
|
|
||||||
environment:
|
|
||||||
nodejs_version: "14"
|
|
||||||
|
|
||||||
version: "{build}"
|
|
||||||
|
|
||||||
install:
|
|
||||||
- ps: Install-Product node $env:nodejs_version $env:platform
|
|
||||||
- yarn
|
|
||||||
- node scripts/build-native.js
|
|
||||||
|
|
||||||
build_script:
|
|
||||||
- yarn run build
|
|
||||||
- node scripts/prepackage-plugins.js
|
|
||||||
- node scripts/build-windows.js
|
|
||||||
|
|
||||||
artifacts:
|
|
||||||
- path: 'dist\*.exe'
|
|
||||||
|
|
||||||
cache:
|
|
||||||
- node_modules
|
|
||||||
- "*\\node_modules"
|
|
||||||
- "%USERPROFILE%\\.electron"
|
|
||||||
- "%LOCALAPPDATA%\\Yarn"
|
|
@ -102,7 +102,7 @@
|
|||||||
"prod": "cross-env TABBY_DEV=1 electron app",
|
"prod": "cross-env TABBY_DEV=1 electron app",
|
||||||
"docs": "node scripts/build-docs.js",
|
"docs": "node scripts/build-docs.js",
|
||||||
"lint": "eslint --ext ts */src */lib",
|
"lint": "eslint --ext ts */src */lib",
|
||||||
"postinstall": "patch-package && node ./scripts/install-deps.js",
|
"postinstall": "patch-package && node ./scripts/install-deps.js && node ./scripts/build-native.js",
|
||||||
"i18n:pull": "crowdin pull --skip-untranslated-strings",
|
"i18n:pull": "crowdin pull --skip-untranslated-strings",
|
||||||
"i18n:extract": "node scripts/i18n-extract.js",
|
"i18n:extract": "node scripts/i18n-extract.js",
|
||||||
"i18n:push": "crowdin push"
|
"i18n:push": "crowdin push"
|
||||||
|
@ -19,7 +19,6 @@ parts:
|
|||||||
- libfontconfig-dev
|
- libfontconfig-dev
|
||||||
override-build: |
|
override-build: |
|
||||||
yarn
|
yarn
|
||||||
./scripts/build-native.js
|
|
||||||
yarn run build
|
yarn run build
|
||||||
./scripts/build-linux.js
|
./scripts/build-linux.js
|
||||||
mkdir -p $SNAPCRAFT_PART_INSTALL/opt/tabby || true
|
mkdir -p $SNAPCRAFT_PART_INSTALL/opt/tabby || true
|
||||||
|
Loading…
Reference in New Issue
Block a user