1
0
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:
Laurent Cozic 2024-12-12 17:37:43 +01:00
parent dd9d5e3cfb
commit a5e3083bfd

View File

@ -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);