Skip to content

Commit 9377555

Browse files
committed
rewatch.exe -> rescript.exe
1 parent c51cc4e commit 9377555

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ dce:
1717

1818
rewatch:
1919
cargo build --manifest-path rewatch/Cargo.toml --release
20-
cp rewatch/target/release/rewatch rewatch
2120
./scripts/copyExes.js --rewatch
2221

2322
ninja/ninja:

scripts/copyExes.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,18 @@ if (shouldCopyNinja) {
4646
}
4747

4848
if (shouldCopyRewatch) {
49-
copyExe(rewatchDir, "rewatch");
49+
copyExe(path.join(rewatchDir, "target", "release"), "rewatch", "rescript");
5050
}
5151

5252
/**
5353
* @param {string} dir
5454
* @param {string} exe
55+
* @param {string | undefined} renamed
5556
*/
56-
function copyExe(dir, exe) {
57+
function copyExe(dir, exe, renamed) {
5758
const ext = process.platform === "win32" ? ".exe" : "";
5859
const src = path.join(dir, exe + ext);
59-
const dest = path.join(binDir, `${exe}.exe`);
60+
const dest = path.join(binDir, `${renamed ?? exe}.exe`);
6061

6162
// For some reason, the copy operation fails in Windows CI if the file already exists.
6263
if (process.platform === "win32" && fs.existsSync(dest)) {

0 commit comments

Comments
 (0)