Skip to content

Commit 86e96e6

Browse files
authored
Merge pull request #36 from cknitt/improve-scripts
Improve scripts
2 parents 172e12e + d509a62 commit 86e96e6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM ubuntu:18.04
22

33
RUN apt-get update \
4-
&& DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs npm git rsync m4 curl \
4+
&& DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs npm git rsync m4 curl zip \
55
&& rm -rf /var/lib/apt/lists/*
66

77
RUN npm i -g esy@0.5.8

scripts/createZip.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ const zipName = `${exeName}-${version}-${platform}.zip`;
1313
if (fs.existsSync(zipName)) {
1414
fs.unlinkSync(zipName);
1515
}
16-
fs.copyFileSync("_build/default/bin/Extract.exe", exeName);
16+
17+
const builtExePath = child_process
18+
.execSync(`esy x which Extract.exe`)
19+
.toString()
20+
.trim();
21+
22+
fs.copyFileSync(builtExePath, exeName);
1723
child_process.execSync(`zip ${zipName} ${exeName}`);
1824
fs.unlinkSync(exeName);

0 commit comments

Comments
 (0)