文件
mynode/packages/app-mobile/tools/podInstall.js
chen 301194963b
一些检查失败了
automerge / automerge (push) Has been cancelled
react-native-android-build-apk / AssembleRelease (push) Has been cancelled
Build macOS M1 / Main (push) Has been cancelled
Joplin Continuous Integration / Main (macos-15-intel) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-11-vs2026-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-2025) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04-arm) (push) Has been cancelled
Joplin UI tests / Main (ubuntu-22.04) (push) Has been cancelled
Joplin UI tests / Main (windows-2025) (push) Has been cancelled
Joplin UI tests / Mobile (push) Has been cancelled
Close stale issues / ProcessStaleIssues (push) Has been cancelled
feat: Initial clean release of CHM
2026-11-04 11:29:39 +08:00

29 行
1.0 KiB
JavaScript

const execa = require('execa');
module.exports = async function() {
if (process.platform !== 'darwin') return Promise.resolve();
// 2024-10-11: Seems running `pod install` is not so slow anymore, and at least not the
// bottleneck when running `yarn install` so we should run it every time.
// if (!process.env.RUN_POD_INSTALL) {
// // We almost never need to run `pod install` either because it has
// // already been done, or because we are not building the iOS app, yet
// // it's taking most of the build time (3 min out of the 5 min needed to
// // build the entire monorepo). If it needs to be ran, XCode will tell us
// // anyway.
// console.warn('**Not** running `pod install` - set `RUN_POD_INSTALL` to `1` to do so');
// return Promise.resolve();
// }
try {
const promise = execa('pod', ['install'], { cwd: `${__dirname}/../ios` });
promise.stdout.pipe(process.stdout);
await promise;
} catch (error) {
console.warn('Could not run pod install', error);
}
return Promise.resolve();
};