mirror of
https://github.com/EthanShoeDev/fressh.git
synced 2026-01-12 23:02:49 +00:00
release configs
This commit is contained in:
@@ -6,18 +6,18 @@ type Target = (typeof targetOptions)[number];
|
||||
|
||||
const envTarget = process.env.MOBILE_TARGET as Target | undefined;
|
||||
if (envTarget && !targetOptions.includes(envTarget))
|
||||
throw new Error(`Invalid target: ${envTarget}`);
|
||||
throw new Error(`Invalid target: ${envTarget}`);
|
||||
|
||||
const target =
|
||||
envTarget ??
|
||||
(() => {
|
||||
const uname = os.platform();
|
||||
if (uname === 'darwin') return 'ios';
|
||||
return 'android';
|
||||
})();
|
||||
envTarget ??
|
||||
(() => {
|
||||
const uname = os.platform();
|
||||
if (uname === 'darwin') return 'ios';
|
||||
return 'android';
|
||||
})();
|
||||
|
||||
console.log(`Building for ${target}`);
|
||||
|
||||
child.execSync(`turbo run build:${target} --ui stream`, {
|
||||
stdio: 'inherit',
|
||||
stdio: 'inherit',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user