diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0da7de3..6976c04 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,4 +25,4 @@ jobs: run: npm install - name: Build - run: node release/build.js --target itch-setup + run: node release/build.js --target itch-setup --skip-signing diff --git a/release/build.js b/release/build.js index 06c7f46..4d706cc 100644 --- a/release/build.js +++ b/release/build.js @@ -71,6 +71,7 @@ async function main(args) { os: detectOS(), arch: DEFAULT_ARCH, target: "missing", + skipSigning: false, }; for (let i = 0; i < args.length; i++) { @@ -84,6 +85,11 @@ async function main(args) { continue; } + if (k == "skip-signing") { + opts.skipSigning = true; + continue; + } + if (k === "os" || k === "arch" || k === "target") { i++; let v = args[i]; @@ -224,7 +230,7 @@ async function main(args) { $(`go build -a -ldflags "${ldFlags}" ${goTags} -o ${target}`); $(`file ${target}`); - if (opts.os === "windows") { + if (opts.os === "windows" && !opts.skipSigning) { verifyCoIncrementMTAUsage(target); console.log(`Signing Windows binary...`); @@ -242,7 +248,7 @@ async function main(args) { $(`tools/signtool.exe ${signArgs.join(" ")}`); } - if (opts.os === "darwin") { + if (opts.os === "darwin" && !opts.skipSigning) { console.log(`Signing macOS binary...`); let signKey = "Developer ID Application: itch corp. (AK2D34UDP2)"; $(`codesign --deep --force --verbose --sign "${signKey}" "${target}"`);