various fixes
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
/**
|
||||
* 将 app-expo/.env.<name> 复制为 .env,供 Metro/Expo 读取 EXPO_PUBLIC_*。
|
||||
*
|
||||
* 参数 name → 源文件:
|
||||
* development → .env.development(本地默认:npm start / prestart)
|
||||
* staging → .env.staging
|
||||
* production → .env.production
|
||||
*
|
||||
* CI:.github/workflows/app-expo-deploy.yml 按分支/tag 调用本脚本,与后端 env 策略对齐。
|
||||
*/
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const env = process.argv[2] || 'development';
|
||||
|
||||
Reference in New Issue
Block a user