Skip to content

Commit

Permalink
autorebuild native modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Apr 30, 2022
1 parent a434220 commit 3e2f93c
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 48 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,7 @@ jobs:
- name: Install deps
run: |
sudo npm i -g [email protected]
cd app
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:
ARCH: ${{matrix.arch}}

Expand Down Expand Up @@ -150,14 +143,7 @@ jobs:
sudo apt-get update
sudo apt-get install libarchive-tools zsh
npm i -g [email protected]
cd app
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
run: yarn run build
Expand Down Expand Up @@ -269,7 +255,6 @@ jobs:
run: |
npm i -g [email protected]
yarn --network-timeout 1000000
node scripts/build-native.js
yarn run build
node scripts/prepackage-plugins.js
env:
Expand Down
3 changes: 0 additions & 3 deletions HACKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ First, install the dependencies:
```
# macOS:
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**
Expand All @@ -20,14 +19,12 @@ yarn
# 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
yarn
./scripts/build-native.js
```

```
# Windows:
npm -g install windows-build-tools
yarn
node scripts\build-native.js
```

Now, check if your build is working:
Expand Down
28 changes: 0 additions & 28 deletions appveyor.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"prod": "cross-env TABBY_DEV=1 electron app",
"docs": "node scripts/build-docs.js",
"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:extract": "node scripts/i18n-extract.js",
"i18n:push": "crowdin push"
Expand Down
1 change: 0 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ parts:
- libfontconfig-dev
override-build: |
yarn
./scripts/build-native.js
yarn run build
./scripts/build-linux.js
mkdir -p $SNAPCRAFT_PART_INSTALL/opt/tabby || true
Expand Down

0 comments on commit 3e2f93c

Please sign in to comment.