Updated noinstall build, added gitattributes for standardization.

This commit is contained in:
Corey Butler
2018-08-11 18:28:00 -05:00
parent 438ac25701
commit 93e5cdd241
3 changed files with 39 additions and 36 deletions

1
.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
* text eol=lf

68
.gitignore vendored
View File

@@ -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

View File

@@ -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%