Skip to content

Commit fed56b0

Browse files
committed
Make windows packaging work again
1 parent 1efe5f0 commit fed56b0

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

mk/dist.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ nsis-dist: $(PKG_EXE)
6262

6363
lic.txt: $(S)LICENSE.txt
6464
@$(call E, crlf: $@)
65-
@$(Q)perl -pe 's@\n@\r\n@go' <$< >$@
65+
@$(Q)perl -pe 's@\r\n|\n@\r\n@go' <$< >$@
6666

67-
$(PKG_EXE): $(PKG_NSI) $(PKG_FILES) $(DOCS) $(SREQ3) lic.txt
67+
$(PKG_EXE): $(PKG_NSI) $(PKG_FILES) $(DOCS) $(SREQ3$(CFG_HOST_TRIPLE)) lic.txt
6868
@$(call E, makensis: $@)
6969
$(Q)makensis -NOCD -V1 "-XOutFile $@" "-XLicenseData lic.txt" $<
7070
$(Q)rm -f lic.txt

src/etc/pkg/rust.nsi

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,29 @@ ShowUninstDetails "show"
1010
SetCompressor "lzma"
1111
LicenseForceSelection checkbox
1212

13+
InstallDir $PROGRAMFILES\Rust
14+
1315
Page license
14-
Page components
1516
Page directory
1617
Page instfiles
1718
UninstPage uninstConfirm
1819
UninstPage instfiles
1920

2021

2122
Section "Compiler"
22-
SetOutPath $INSTDIR
23-
File /oname=rustc.exe stage3\rustc.exe
24-
File /oname=rustllvm.dll stage3\rustllvm.dll
25-
File /oname=rustrt.dll stage3\rustrt.dll
26-
File /oname=std.dll stage3\std.dll
23+
SetOutPath $INSTDIR\bin
24+
File /oname=rustc.exe stage3\bin\rustc.exe
2725

2826
SetOutPath $INSTDIR\lib
29-
File /oname=rustrt.dll stage3\lib\rustrt.dll
30-
File /oname=std.dll stage3\lib\std.dll
31-
File /oname=main.o stage3\lib\main.o
32-
File /oname=glue.o stage3\lib\glue.o
27+
File /oname=rustllvm.dll stage3\lib\rustllvm.dll
28+
File /oname=rustrt.dll stage3\lib\rustrt.dll
29+
File /oname=std.dll stage3\lib\std.dll
30+
31+
SetOutPath $INSTDIR\lib\rustc\i686-pc-mingw32\lib
32+
File /oname=rustrt.dll stage3\lib\rustc\i686-pc-mingw32\lib\rustrt.dll
33+
File /oname=std.dll stage3\lib\rustc\i686-pc-mingw32\lib\std.dll
34+
File /oname=main.o stage3\lib\rustc\i686-pc-mingw32\lib\main.o
35+
File /oname=intrinsics.bc stage3\lib\rustc\i686-pc-mingw32\lib\intrinsics.bc
3336
SectionEnd
3437

3538
Section "Documentation"

0 commit comments

Comments
 (0)