Skip to content

Commit

Permalink
fix upload script
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi committed Feb 21, 2022
1 parent 00ae6da commit 7cc953d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion script/xcrun-wrapper.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import execa from 'execa';
import { readFile } from 'fs/promises';

// we need a wrapper script because altool tends to error out very often
// https://developer.apple.com/forums/thread/698477
Expand All @@ -15,8 +16,11 @@ const bundleId = args[4];
// seems to be the same
const ascPublicId = apiIssuer;

const packageJson = JSON.parse(await readFile(new URL('../package.json', import.meta.url)));

const packageVersion = process.env.npm_package_version;
console.log('Using version', packageJson.version);

const packageVersion = packageJson.version;
// const packageVersion = '3.39.2';

const bundleVersion = packageVersion;
Expand Down

0 comments on commit 7cc953d

Please sign in to comment.