1 Star 0 Fork 2

王文磊/nginx-win64

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
package.ps1 894 Bytes
一键复制 编辑 原始数据 按行查看 历史
张奇 提交于 2020-05-26 22:25 +08:00 . 新增:Windows Service Wrapper v2.9.0
<#PSScriptInfo
.VERSION 1.0
.AUTHOR ZHANGQ
.COMPANYNAME HQYSTUDIO.DEV
.COPYRIGHT Copyright 2020 HQYSTUDIO. All rights reserved.
#>
$NGINX_INFO = @{
'TITLE' = 'Nginx-win64';
'VERSION' = '1.18.0'
}
$SOURCES = @(
'.\conf',
'.\contrib',
'.\logs',
'.\temp',
'.\objs\docs',
'.\docs\html',
'.\objs\nginx.exe',
'.\objs\libs\winsw\*.*'
)
# Copy source to 'Nginx-win64-1.18.0' directory
$dirName = "{0}-{1}" -f $NGINX_INFO.TITLE, $NGINX_INFO.VERSION
$newDir = New-Item -Name $dirName -ItemType Directory
foreach ($source in $SOURCES) {
Copy-Item -Path $source -Destination $newDir -Force -Recurse
}
# Compress 'Nginx-win64-1.18.0' directory
Compress-Archive -Path $newDir -DestinationPath "$dirName.zip" -CompressionLevel Fastest -Force
# Clear 'Nginx-win64-1.18.0' directory
Remove-Item -Path $newDir -Force -Recurse
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/keao_code/nginx-win64.git
git@gitee.com:keao_code/nginx-win64.git
keao_code
nginx-win64
nginx-win64
master

搜索帮助