1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-22 10:22:31 +01:00

fix upload script

This commit is contained in:
Mikael Finstad 2022-02-21 15:39:34 +08:00
parent 00ae6da2b3
commit 7cc953d87d
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

View File

@ -1,4 +1,5 @@
import execa from 'execa'; import execa from 'execa';
import { readFile } from 'fs/promises';
// we need a wrapper script because altool tends to error out very often // we need a wrapper script because altool tends to error out very often
// https://developer.apple.com/forums/thread/698477 // https://developer.apple.com/forums/thread/698477
@ -15,8 +16,11 @@ const bundleId = args[4];
// seems to be the same // seems to be the same
const ascPublicId = apiIssuer; 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 packageVersion = '3.39.2';
const bundleVersion = packageVersion; const bundleVersion = packageVersion;