Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
风弥漫了夏天
nvm-windows
提交
dfd8e5a7
N
nvm-windows
项目概览
风弥漫了夏天
/
nvm-windows
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
nvm-windows
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
dfd8e5a7
编写于
8月 11, 2018
作者:
C
Corey Butler
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Simplified build to leverage version number from generated executable."
上级
08fb7000
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
345 addition
and
345 deletion
+345
-345
LICENSE
LICENSE
+1
-1
build.bat
build.bat
+25
-25
nvm.iss
nvm.iss
+318
-318
src/nvm.go
src/nvm.go
+1
-1
未找到文件。
LICENSE
浏览文件 @
dfd8e5a7
The MIT License (MIT)
Copyright (c) 201
4 Corey Butler and contributors
.
Copyright (c) 201
8 Ecor Ventures LLC
.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
...
...
build.bat
浏览文件 @
dfd8e5a7
...
...
@@ -3,52 +3,52 @@ SET INNOSETUP=%CD%\nvm.iss
SET
ORIG
=
%CD%
REM SET GOPATH=%CD%\src
SET
GOBIN
=
%CD%
\bin
REM Support for older architectures
SET
GOARCH
=
386
SET
version
=
1
.1.7
SET
DIST
=
%CD%
\dist\
%version%
echo
Building
NVM
for
Windows
echo
Remove
existing
build
at
%DIST%
rd
/s /q
"
%DIST%
"
echo
Creating
%DIST%
mkdir
"
%DIST%
"
echo
Creating
distribution
in
%DIST%
REM Cleanup existing build if it exists
if
exist
src
\nvm.exe
(
del
src
\nvm.exe
)
echo
Building
nvm
.exe
:
REM Make the executable and add to the binary directory
echo
Building
nvm
.exe
go
build
src
\nvm.go
REM Group the file with the helper binaries
move
nvm
.exe
%GOBIN%
for
/f
%%i
in
(
'
%GOBIN%
\nvm.exe version'
)
do
set
BUILT_VERSION
=
%%i
REM Codesign the executable
.\buildtools\signtools\x64\signtool.exe
sign
/debug /tr
http
://timestamp.digicert.com
/td
sha256
/fd
sha256
/a
%GOBIN%
\nvm.exe
for
/f
%%i
in
(
'
%GOBIN%
\nvm.exe version'
)
do
set
AppVersion
=
%%i
echo
nvm
.exe
v
%AppVersion%
built
.
REM Create the distribution folder
SET
DIST
=
%CD%
\dist\
%AppVersion%
if
NOT
%BUILT_VERSION%
==
%version%
(
echo
Expected
nvm
.exe
version
%version%
but
created
version
%BUILT_VERSION%
exit
1
)
else
(
echo
nvm
.exe
v
%BUILT_VERSION%
built
.
REM Remove old build files if they exist.
if
exist
%DIST%
(
echo
Clearing
old
build
in
%DIST%
rd
/s /q
"
%DIST%
"
)
echo
Codesign
nvm
.exe
...
.\buildtools\signtools\x64\signtool.exe
sign
/debug /tr
http
://timestamp.digicert.com
/td
sha256
/fd
sha256
/a
%GOBIN%
\nvm.exe
REM Create the distribution directory
mkdir
"
%DIST%
"
echo
Building
"noinstall"
zip
...
REM Create the "no install" zip version
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..."
REM Generate the installer (InnoSetup)
buildtools
\iscc
%INNOSETUP%
/o
%DIST%
buildtools
\zip
-j
-
9
-r
"
%DIST%
\nvm-setup.zip"
"
%DIST%
\nvm-setup.exe"
echo
"Generating Checksums for release files..."
REM Generate checksums
for
%%f
in
(
%DIST%
\
*
.
*)
do
(
certutil
-hashfile
"
%%f
"
MD5
|
find
/i /v
"md5"
|
find
/i /v
"certutil"
>>
"
%%f
.checksum.txt"
)
echo
"Distribution created. Now cleaning up...."
REM Cleanup
del
%GOBIN%
\nvm.exe
echo
"Done."
echo
NVM
for
Windows
v
%AppVersion%
build
completed
.
@echo
on
nvm.iss
浏览文件 @
dfd8e5a7
此差异已折叠。
点击以展开。
src/nvm.go
浏览文件 @
dfd8e5a7
...
...
@@ -21,7 +21,7 @@ import (
)
const
(
NvmVersion
=
"1.1.
7
"
NvmVersion
=
"1.1.
8
"
)
type
Environment
struct
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录