mirror of
https://github.com/coreybutler/nvm-windows.git
synced 2025-09-02 02:44:36 +00:00
Updated noinstall build, added gitattributes for standardization.
This commit is contained in:
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
||||
* text eol=lf
|
68
.gitignore
vendored
68
.gitignore
vendored
@@ -1,34 +1,34 @@
|
||||
# Compiled Object files, Static and Dynamic libs (Shared Objects)
|
||||
*.o
|
||||
*.a
|
||||
*.so
|
||||
|
||||
# Folders
|
||||
_obj
|
||||
_test
|
||||
|
||||
# Architecture specific extensions/prefixes
|
||||
*.[568vq]
|
||||
[568vq].out
|
||||
|
||||
*.cgo1.go
|
||||
*.cgo2.c
|
||||
_cgo_defun.c
|
||||
_cgo_gotypes.go
|
||||
_cgo_export.*
|
||||
|
||||
_testmain.go
|
||||
|
||||
*.exe
|
||||
*.test
|
||||
*.prof
|
||||
|
||||
dist
|
||||
src/v*
|
||||
bin/*.exe
|
||||
!bin/buildtools/*
|
||||
bin/*.zip
|
||||
bin/nvm/*
|
||||
|
||||
!.gitignore
|
||||
|
||||
# Compiled Object files, Static and Dynamic libs (Shared Objects)
|
||||
*.o
|
||||
*.a
|
||||
*.so
|
||||
|
||||
# Folders
|
||||
_obj
|
||||
_test
|
||||
|
||||
# Architecture specific extensions/prefixes
|
||||
*.[568vq]
|
||||
[568vq].out
|
||||
|
||||
*.cgo1.go
|
||||
*.cgo2.c
|
||||
_cgo_defun.c
|
||||
_cgo_gotypes.go
|
||||
_cgo_export.*
|
||||
|
||||
_testmain.go
|
||||
|
||||
*.exe
|
||||
*.test
|
||||
*.prof
|
||||
|
||||
dist
|
||||
src/v*
|
||||
bin/*.exe
|
||||
!bin/buildtools/*
|
||||
bin/*.zip
|
||||
bin/nvm/*
|
||||
|
||||
!.gitignore
|
||||
!.gitattributes
|
||||
|
@@ -22,7 +22,9 @@ if exist src\nvm.exe (
|
||||
echo Building nvm.exe:
|
||||
|
||||
go build src\nvm.go
|
||||
|
||||
move nvm.exe %GOBIN%
|
||||
|
||||
for /f %%i in ('%GOBIN%\nvm.exe version') do set BUILT_VERSION=%%i
|
||||
|
||||
if NOT %BUILT_VERSION% == %version% (
|
||||
@@ -32,11 +34,11 @@ if NOT %BUILT_VERSION% == %version% (
|
||||
echo nvm.exe v%BUILT_VERSION% built.
|
||||
)
|
||||
|
||||
echo Code Sign nvm.exe...
|
||||
echo Codesign nvm.exe...
|
||||
.\buildtools\signtools\x64\signtool.exe sign /debug /tr http://timestamp.digicert.com /td sha256 /fd sha256 /a %GOBIN%\nvm.exe
|
||||
|
||||
echo Building "noinstall" zip...
|
||||
for /f %%a in (%GOBIN%) do (buildtools\zip -j -9 -r "%DIST%\nvm-noinstall.zip" "%CD%\LICENSE" "%%a\*" -x "%GOBIN%\nodejs.ico")
|
||||
for %%a in (%GOBIN%) do (buildtools\zip -j -9 -r "%DIST%\nvm-noinstall.zip" "%CD%\LICENSE" "%%a\*" -x "%GOBIN%\nodejs.ico")
|
||||
|
||||
echo "Building the primary installer..."
|
||||
buildtools\iscc %INNOSETUP% /o%DIST%
|
||||
|
Reference in New Issue
Block a user