1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-10-30 06:13:11 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Support oss

This commit is contained in:
sunnylqm
2020-03-06 18:56:15 +08:00
parent 76d958c623
commit 0b217484b7
7 changed files with 302 additions and 1174 deletions

View File

@@ -95,7 +95,8 @@ export async function getIpaInfo(fn) {
const localDir = path.resolve(os.homedir(), '.pushy');
fs.ensureDirSync(localDir);
export function saveToLocal(originPath, destName) {
const destPath = path.join(localDir, destName);
fs.ensureDirSync(path.dirname(destPath));
fs.copyFileSync(originPath, destPath);
// TODO
// const destPath = path.join(localDir, destName);
// fs.ensureDirSync(path.dirname(destPath));
// fs.copyFileSync(originPath, destPath);
}