Skip to content

Commit 15cbcbc

Browse files
committed
mk: Fix the naming of the windows installer harder
CFG_VERSION includes a bunch of VCS info in it that is not a valid filename. CFG_RELEASE is just the version number.
1 parent 1ea0217 commit 15cbcbc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Makefile.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ export CFG_SRC_DIR
410410
export CFG_BUILD_DIR
411411
export CFG_VERSION
412412
export CFG_VERSION_WIN
413+
export CFG_RELEASE
413414
export CFG_BUILD
414415
export CFG_LLVM_ROOT
415416
export CFG_ENABLE_MINGW_CROSS

src/etc/pkg/rust.iss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#define CFG_VERSION GetEnv("CFG_VERSION")
22
#define CFG_VERSION_WIN GetEnv("CFG_VERSION_WIN")
3+
#define CFG_RELEASE GetEnv("CFG_RELEASE")
34

45
[Setup]
56

@@ -19,7 +20,7 @@ DisableStartupPrompt=true
1920

2021
OutputDir=.\
2122
SourceDir=.\
22-
OutputBaseFilename=rust-{#CFG_VERSION}-install
23+
OutputBaseFilename=rust-{#CFG_RELEASE}-install
2324
DefaultDirName={pf32}\Rust
2425

2526
Compression=lzma2/ultra

0 commit comments

Comments
 (0)