mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-18 09:35:20 +02:00
Chore: Add warning message before releasing iOS app
This commit is contained in:
parent
dd9d5e3cfb
commit
a5e3083bfd
@ -1,9 +1,26 @@
|
||||
import * as fs from 'fs-extra';
|
||||
import { rootDir, gitPullTry, completeReleaseWithChangelog } from './tool-utils';
|
||||
import { unique } from '@joplin/lib/ArrayUtils';
|
||||
import * as readline from 'readline';
|
||||
|
||||
const mobileDir = `${rootDir}/packages/app-mobile`;
|
||||
|
||||
const warningMessage = async () => {
|
||||
return new Promise((resolve) => {
|
||||
const rl = readline.createInterface({
|
||||
input: process.stdin,
|
||||
output: process.stdout,
|
||||
});
|
||||
|
||||
console.log('IMPORTANT: Before releasing the iOS app, run `yarn install && yarn buildParallel`. Press Ctrl+C if it has not been done. Press Enter to continue...');
|
||||
|
||||
rl.on('line', () => {
|
||||
rl.close();
|
||||
resolve(null);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
// Note that it will update all the MARKETING_VERSION and
|
||||
// CURRENT_PROJECT_VERSION fields, including for extensions (such as the
|
||||
// ShareExtension), which is normally what we want.
|
||||
@ -61,6 +78,8 @@ async function checkDeploymentTargets(filePath: string) {
|
||||
async function main() {
|
||||
await gitPullTry();
|
||||
|
||||
await warningMessage();
|
||||
|
||||
const pbxprojFilePath = `${mobileDir}/ios/Joplin.xcodeproj/project.pbxproj`;
|
||||
await checkDeploymentTargets(pbxprojFilePath);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user