diff --git a/server/scripts/zipUpBuild.ts b/server/scripts/zipUpBuild.ts index 8ef737f..5cb8bad 100644 --- a/server/scripts/zipUpBuild.ts +++ b/server/scripts/zipUpBuild.ts @@ -44,7 +44,7 @@ const shouldIgnore = (itemPath: any) => { }); }; -const addToZip = (zip: any, currentPath: any, rootPath: any) => { +const addToZip = (zip: any, currentPath: string, rootPath: string) => { const items = fs.readdirSync(currentPath); items.forEach((item) => { @@ -102,9 +102,10 @@ export const createZip = async (appLock: string) => { const zip = new AdmZip(); //dest path for this app... hard coded for meow will be in db later - const destPath = app.admConfig.dest; + const destPath = `${process.env.DEVFOLDER}\\builds`; + const srcPath = `${process.env.DEVFOLDER}`; - addToZip(zip, app.admConfig.src, app.admConfig.src); + addToZip(zip, srcPath, srcPath); // Write the zip file to disk const outputZipPath = path.join(destPath, `${app.name}-${app.version}-${app.admConfig.build}.zip`);