File tree Expand file tree Collapse file tree 4 files changed +21
-8
lines changed
Expand file tree Collapse file tree 4 files changed +21
-8
lines changed Original file line number Diff line number Diff line change @@ -55,16 +55,10 @@ jobs:
5555 if [ "$RUNNER_OS" == "Windows" ]; then
5656 npx nx run open-lens:build:app --win nsis msi portable
5757 elif [ "$RUNNER_OS" == "Linux" ]; then
58- npx nx run open-lens:build:app
59- npm run all:reinstall
60- npx nx reset
61-
6258 sudo apt update
63- sudo apt install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu -y
64- export CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++
65- mkdir -p open-lens/node_modules
59+ sudo apt install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu -y
6660
67- npx nx run open-lens:build:app --arm64
61+ npx nx run open-lens:build:app --x64 -- arm64
6862 find . -name '*pty.node' -print0 | xargs -0 file
6963 else
7064 npx nx run open-lens:build:app --x64 --arm64
Original file line number Diff line number Diff line change 11.DS_Store
22README.md
3+ /lens /
Original file line number Diff line number Diff line change 1+ const archMap = {
2+ "amd64" : "x86_64" ,
3+ "arm64" : "aarch64" ,
4+ }
5+
6+ module . exports = async ( buildContext ) => {
7+ if ( buildContext . platform . name !== "linux" ) return true
8+
9+ if ( buildContext . arch in archMap ) {
10+ process . env . CC = `${ archMap [ buildContext . arch ] } -linux-gnu-gcc`
11+ process . env . CXX = `${ archMap [ buildContext . arch ] } -linux-gnu-g++`
12+ } else {
13+ process . env . CC = "gcc"
14+ process . env . CXX = "g++"
15+ }
16+ return true
17+ }
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ packageJsonOpenLens.build.publish = [{
1010packageJsonOpenLens . version = `${ packageJsonOpenLens . version } -${ process . env . BUILD_ID } ` ;
1111packageJsonOpenLens . build . npmRebuild = true ;
1212packageJsonOpenLens . build . detectUpdateChannel = false ;
13+ packageJsonOpenLens . build . beforeBuild = '../../build-hooks/beforeBuild' ;
1314
1415delete packageJsonOpenLens . scripts . postinstall ;
1516
You can’t perform that action at this time.
0 commit comments