fix(zippaths): corrected the paths to the src that were moved the the env
This commit is contained in:
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user