diff --git a/docker/Dockerfile b/docker/Dockerfile index 9baaff0..3781649 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,7 +1,7 @@ FROM ubuntu:18.04 RUN apt-get update \ - && DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs npm git rsync m4 curl \ + && DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs npm git rsync m4 curl zip \ && rm -rf /var/lib/apt/lists/* RUN npm i -g esy@0.5.6 diff --git a/scripts/createZip.js b/scripts/createZip.js index d00b436..95390fb 100644 --- a/scripts/createZip.js +++ b/scripts/createZip.js @@ -13,6 +13,12 @@ const zipName = `${exeName}-${version}-${platform}.zip`; if (fs.existsSync(zipName)) { fs.unlinkSync(zipName); } -fs.copyFileSync("_build/default/bin/Extract.exe", exeName); + +const builtExePath = child_process + .execSync(`esy x which Extract.exe`) + .toString() + .trim(); + +fs.copyFileSync(builtExePath, exeName); child_process.execSync(`zip ${zipName} ${exeName}`); fs.unlinkSync(exeName);