Package system runtime dependencies into Windows distribution.
This commit is contained in:
parent
1a6b6c4301
commit
4e59ab097a
3 changed files with 18 additions and 1 deletions
|
@ -60,6 +60,7 @@ LICENSE.txt: $(S)COPYRIGHT $(S)LICENSE-APACHE $(S)LICENSE-MIT
|
||||||
|
|
||||||
$(PKG_EXE): rust.iss modpath.iss LICENSE.txt rust-logo.ico \
|
$(PKG_EXE): rust.iss modpath.iss LICENSE.txt rust-logo.ico \
|
||||||
$(PKG_FILES) $(CSREQ3_T_$(CFG_BUILD_TRIPLE)_H_$(CFG_BUILD_TRIPLE))
|
$(PKG_FILES) $(CSREQ3_T_$(CFG_BUILD_TRIPLE)_H_$(CFG_BUILD_TRIPLE))
|
||||||
|
$(CFG_PYTHON) $(S)src/etc/copy-runtime-deps.py i686-pc-mingw32/stage3/bin
|
||||||
@$(call E, ISCC: $@)
|
@$(call E, ISCC: $@)
|
||||||
$(Q)"$(CFG_ISCC)" $<
|
$(Q)"$(CFG_ISCC)" $<
|
||||||
endif
|
endif
|
||||||
|
|
16
src/etc/copy-runtime-deps.py
Normal file
16
src/etc/copy-runtime-deps.py
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
# xfail-license
|
||||||
|
|
||||||
|
# Copies Rust runtime dependencies to the specified directory
|
||||||
|
|
||||||
|
import snapshot, sys, os, shutil
|
||||||
|
|
||||||
|
def copy_runtime_deps(dest_dir):
|
||||||
|
for path in snapshot.get_winnt_runtime_deps():
|
||||||
|
shutil.copy(path, dest_dir)
|
||||||
|
|
||||||
|
lic_dest = os.path.join(dest_dir, "third-party")
|
||||||
|
shutil.rmtree(lic_dest) # copytree() won't overwrite existing files
|
||||||
|
shutil.copytree(os.path.join(os.path.dirname(__file__), "third-party"), lic_dest)
|
||||||
|
|
||||||
|
copy_runtime_deps(sys.argv[1])
|
|
@ -19,7 +19,7 @@ DisableStartupPrompt=true
|
||||||
|
|
||||||
OutputDir=.\
|
OutputDir=.\
|
||||||
SourceDir=.\
|
SourceDir=.\
|
||||||
OutputBaseFilename=rust-{#CFG_VERSION}-install
|
OutputBaseFilename=rust-{#CFG_VERSION_WIN}-install
|
||||||
DefaultDirName={pf32}\Rust
|
DefaultDirName={pf32}\Rust
|
||||||
|
|
||||||
Compression=lzma2/ultra
|
Compression=lzma2/ultra
|
||||||
|
|
Loading…
Add table
Reference in a new issue