Archived
Make iOS release signing deterministic
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// @ts-check
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const xcode = require("xcode");
|
||||
const { configureReleaseSigning } = require("../plugins/withAppStoreSigning");
|
||||
|
||||
const projectPath = process.argv[2];
|
||||
if (!projectPath) {
|
||||
throw new Error(
|
||||
"Usage: node scripts/configure-ios-signing.js <project.pbxproj>",
|
||||
);
|
||||
}
|
||||
|
||||
const resolvedPath = path.resolve(projectPath);
|
||||
const project = xcode.project(resolvedPath);
|
||||
project.parseSync();
|
||||
configureReleaseSigning(project);
|
||||
fs.writeFileSync(resolvedPath, project.writeSync());
|
||||
|
||||
console.log("Configured manual App Store signing for iOS release targets.");
|
||||
Reference in New Issue
Block a user