Skip to content

Commit

Permalink
➕ Add xmake to dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Jan 9, 2025
1 parent cb55230 commit f958cec
Show file tree
Hide file tree
Showing 3 changed files with 688 additions and 419 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: |
pacman -Sy --noconfirm mingw-w64-x86_64-pkg-config \
mingw-w64-x86_64-librime mingw-w64-x86_64-nodejs \
mingw-w64-x86_64-gcc mingw-w64-x86_64-xmake git
mingw-w64-x86_64-gcc git
ln -s c++ /mingw64/bin/cxx
- name: Enable corepack
run: |
Expand All @@ -55,13 +55,12 @@ jobs:
- name: Install dependencies
if: runner.os == 'Linux'
run: |
sudo add-apt-repository ppa:xmake-io/xmake
sudo apt-get -y update
sudo apt-get -y install librime-dev librime1 xmake
sudo apt-get -y install librime-dev librime1
- name: Install dependencies
if: runner.os == 'macOS'
run: |
brew install librime xmake
brew install librime
- name: Build
run: |
yarn install
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@
"coc": "^0.0.80"
},
"scripts": {
"install": "xmake && xmake install",
"lint": "eslint src --ext ts",
"clean": "rimraf lib",
"watch": "node esbuild.js --watch",
"prepack": "pkg-prebuilds-copy --baseDir build/release --source rime.node --name=rime --strip --napi_version=7 && node esbuild.js",
"prepack": "xmake && xmake install && pkg-prebuilds-copy --baseDir build/release --source rime.node --name=rime --strip --napi_version=7 && node esbuild.js",
"prepare": "npm-run-all clean prepack"
},
"prettier": {
Expand All @@ -42,7 +41,8 @@
"typescript": "^4.1.2",
"vscode-languageserver-protocol": "^3.14.1",
"vscode-languageserver-textdocument": "^1.0.1",
"vscode-languageserver-types": "^3.14.0"
"vscode-languageserver-types": "^3.14.0",
"xmake-build-system": "2.9.7"
},
"activationEvents": [
"*"
Expand Down
Loading

0 comments on commit f958cec

Please sign in to comment.