forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an NSIS script for building a win32 installer. Closes rust-lang#522.
- Loading branch information
Showing
4 changed files
with
61 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# -*- shell-script -*- | ||
# (not really, but syntax is similar) | ||
# | ||
# This is a NSIS win32 installer script the Rust toolchain. | ||
# | ||
|
||
Name "Rust" | ||
ShowInstDetails "show" | ||
ShowUninstDetails "show" | ||
SetCompressor "lzma" | ||
LicenseForceSelection checkbox | ||
|
||
Page license | ||
Page components | ||
Page directory | ||
Page instfiles | ||
UninstPage uninstConfirm | ||
UninstPage instfiles | ||
|
||
|
||
Section "Compiler" | ||
SetOutPath $INSTDIR | ||
File /oname=rustc.exe stage3\rustc.exe | ||
File /oname=rustllvm.dll stage3\rustllvm.dll | ||
File /oname=rustrt.dll stage3\rustrt.dll | ||
File /oname=std.dll stage3\std.dll | ||
|
||
SetOutPath $INSTDIR\lib | ||
File /oname=rustrt.dll stage3\lib\rustrt.dll | ||
File /oname=std.dll stage3\lib\std.dll | ||
File /oname=main.o stage3\lib\main.o | ||
File /oname=glue.o stage3\lib\glue.o | ||
SectionEnd | ||
|
||
Section "Documentation" | ||
SetOutPath $INSTDIR\doc | ||
File /nonfatal /oname=rust.html doc\rust.html | ||
File /nonfatal /oname=rust.pdf doc\rust.pdf | ||
SectionEnd |