Compare commits

...

3 Commits

Author SHA1 Message Date
Jan-Otto Kröpke 390062ba5b
Update beforeBuild.js 2023-06-30 09:05:34 +02:00
Jan-Otto Kröpke 217e17adb6
Update update.js 2023-06-30 09:02:57 +02:00
Jan-Otto Kröpke ecf1aadba7
Update beforeBuild.js 2023-06-30 08:02:17 +02:00
2 changed files with 2 additions and 7 deletions

View File

@ -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
}

View File

@ -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,