mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Fix build?
This commit is contained in:
@@ -167,16 +167,33 @@ function setAtomHelperVersion(packagedAppPath) {
|
||||
'Info.plist'
|
||||
);
|
||||
console.log(`Setting Atom Helper Version for ${helperPListPath}`);
|
||||
spawnSync('/usr/libexec/PlistBuddy', [
|
||||
'-c',
|
||||
`Add CFBundleVersion string ${CONFIG.appMetadata.version}`,
|
||||
helperPListPath
|
||||
]);
|
||||
spawnSync('/usr/libexec/PlistBuddy', [
|
||||
'-c',
|
||||
`Add CFBundleShortVersionString string ${CONFIG.appMetadata.version}`,
|
||||
helperPListPath
|
||||
]);
|
||||
try {
|
||||
spawnSync('/usr/libexec/PlistBuddy', [
|
||||
'-c',
|
||||
`Add CFBundleVersion string ${CONFIG.appMetadata.version}`,
|
||||
helperPListPath
|
||||
]);
|
||||
} catch (error) {
|
||||
spawnSync('/usr/libexec/PlistBuddy', [
|
||||
'-c',
|
||||
`Set CFBundleVersion string ${CONFIG.appMetadata.version}`,
|
||||
helperPListPath
|
||||
]);
|
||||
}
|
||||
try {
|
||||
spawnSync('/usr/libexec/PlistBuddy', [
|
||||
'-c',
|
||||
`Add CFBundleShortVersionString string ${CONFIG.appMetadata.version}`,
|
||||
helperPListPath
|
||||
]);
|
||||
} catch (error) {
|
||||
spawnSync('/usr/libexec/PlistBuddy', [
|
||||
'-c',
|
||||
`Set CFBundleShortVersionString string ${CONFIG.appMetadata.version}`,
|
||||
helperPListPath
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function chmodNodeFiles(packagedAppPath) {
|
||||
|
||||
@@ -14,7 +14,7 @@ module.exports = function() {
|
||||
if (result.stdout) console.error(result.stdout.toString());
|
||||
if (result.stderr) console.error(result.stderr.toString());
|
||||
throw new Error(
|
||||
`Command ${result.args.join(' ')} exited with code "${result.status}"`
|
||||
`Command ${(result.args ?? []).join(' ')} exited with code "${result.status}"`
|
||||
);
|
||||
} else {
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user