Skip to content

Commit

Permalink
fix merge-ipa mkdir
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanVukovic99 committed Jul 20, 2024
1 parent bea6c6a commit 83f58d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion merge-ipa.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const date = require('date-and-time');
const now = new Date();

const tempFolder = 'data/temp/ipa';
mkdirSync(tempFolder, { recursive: true });

async function main(){
const languages = JSON.parse(readFileSync('languages.json', 'utf8'));
Expand Down Expand Up @@ -106,7 +107,7 @@ async function main(){

outputFolder = `data/language/${sourceIso}/`;
mkdirSync(outputFolder, { recursive: true });
execSync(`zip -j ${outputFolder}/${title}.zip data/temp/ipa/*`);
execSync(`zip -j ${outputFolder}/${title}.zip ${tempFolder}/*`);
writeFileSync(`${outputFolder}/${title}-index.json`, JSON.stringify(globalIndex, null, 4));
}
}
Expand Down

0 comments on commit 83f58d8

Please sign in to comment.