Compare commits
3 Commits
dd54a23a61
...
390062ba5b
| Author | SHA1 | Date |
|---|---|---|
|
|
390062ba5b | |
|
|
217e17adb6 | |
|
|
ecf1aadba7 |
|
|
@ -4,8 +4,7 @@ const archMap = {
|
|||
}
|
||||
|
||||
module.exports = async (buildContext) => {
|
||||
console.log(buildContext)
|
||||
if (buildContext.platform !== "linux") return true
|
||||
if (buildContext.platform.name !== "linux") return true
|
||||
|
||||
if (buildContext.arch in archMap) {
|
||||
process.env.CC = `${archMap[buildContext.arch]}-linux-gnu-gcc`
|
||||
|
|
@ -14,7 +13,5 @@ module.exports = async (buildContext) => {
|
|||
process.env.CC = "gcc"
|
||||
process.env.CXX = "g++"
|
||||
}
|
||||
|
||||
console.log(process.env.CXX)
|
||||
return true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,10 +11,8 @@ packageJsonOpenLens.version = `${packageJsonOpenLens.version}-${process.env.BUIL
|
|||
packageJsonOpenLens.build.npmRebuild = true;
|
||||
packageJsonOpenLens.build.detectUpdateChannel = false;
|
||||
packageJsonOpenLens.build.beforeBuild = '../../build-hooks/beforeBuild';
|
||||
//packageJsonOpenLens.devDependencies["electron-builder"] = "24.5.1";
|
||||
//packageJsonOpenLens.scripts.postinstall = "electron-builder install-app-deps"
|
||||
|
||||
// delete packageJsonOpenLens.scripts.postinstall;
|
||||
delete packageJsonOpenLens.scripts.postinstall;
|
||||
|
||||
packageJsonOpenLens.copyright = [
|
||||
packageJsonOpenLens.copyright,
|
||||
|
|
|
|||
Loading…
Reference in New Issue