Skip to content
This repository has been archived by the owner on Apr 20, 2020. It is now read-only.

Commit

Permalink
更改不同平台的显示名称
Browse files Browse the repository at this point in the history
  • Loading branch information
Mapaler committed Aug 1, 2017
1 parent ed1f3a0 commit a5539c4
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions AutoZipRelease.vbs
Original file line number Diff line number Diff line change
Expand Up @@ -78,31 +78,26 @@ Do While oExec.StdOut.AtEndOfStream <> True
Loop

curDir = osh.CurrentDirectory + "\"
Dim platform,bit
platform = Split("x86,x64", ",")
bit = Split("win32,win64", ",")
For xi = 0 To 1
Select Case xi
Case 0:
bit = "x86"
Case 1:
bit = "x64"
End Select
zipName = "FastCopy-M_" & verNum & "_" & bit & ".zip"
zipName = "FastCopy-M_" & verNum & "_" & bit(xi) & ".zip"
WScript.Echo "Add files to " & zipName & ""
'7-Zip解压文件的命令行
command = """" & p_7zip & """ a -tzip"
command = command & " """ & zipName & """ " '压缩包地址
command = command & " readme_chs.txt readme_cht.txt readme_eng.txt readme_ja.txt license-gpl3.txt xxhash-LICENSE.txt "
command = command & " """ & curDir & "help\FastCopy.chm"" "
command = command & " """ & curDir & "Output\Release\x86\FastExt1.dll"" "
command = command & " """ & curDir & "Output\Release\x64\FastEx64.dll"" "
command = command & " """ & curDir & "Output\Release\" & bit & "\FastCopy.exe"" "
command = command & " """ & curDir & "Output\Release\" & bit & "\setup.exe"" "
command = command & " """ & curDir & "Output\Release\" & platform(0) & "\FastExt1.dll"" "
command = command & " """ & curDir & "Output\Release\" & platform(1) & "\FastEx64.dll"" "
command = command & " """ & curDir & "Output\Release\" & platform(xi) & "\FastCopy.exe"" "
command = command & " """ & curDir & "Output\Release\" & platform(xi) & "\setup.exe"" "
Set oExec = osh.Exec(command)
Do While oExec.StdOut.AtEndOfStream <> True
'可加入删除符,解压状态保留在同一行
ReadLine = oExec.StdOut.ReadLine
WScript.Echo ReadLine
Loop

Next

'osh.CurrentDirectory = "Output\XP_Release"
Expand Down

0 comments on commit a5539c4

Please sign in to comment.