-
-
Notifications
You must be signed in to change notification settings - Fork 127
/
RELEASE-WINDOWS.rb
38 lines (24 loc) · 962 Bytes
/
RELEASE-WINDOWS.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/ruby
$qtver = "6.7.2"
$qt = "C:/Qt/#{$qtver}/msvc2019_64"
$windeployqt = "C:/Qt/#{$qtver}/msvc2019_64/bin/windeployqt.exe"
#$qt = "" # スタティックリンクのとき
$openssl = "C:/Program Files/OpenSSL"
require 'fileutils'
load 'version.rb'
$workdir = "_release"
$dstdir = $workdir + "/soramimi.jp/" + $product_name
FileUtils.rm_rf($workdir)
FileUtils.mkpath($dstdir)
FileUtils.cp("_bin/#{$product_name}.exe", $dstdir)
#FileUtils.cp("src/resources/translations/Guitar_ja.qm", $dstdir)
#FileUtils.cp($openssl + "/bin/libssl-1_1-x64.dll", $dstdir)
#FileUtils.cp($openssl + "/bin/libcrypto-1_1-x64.dll", $dstdir)
`7z x -o#{$dstdir} misc/win32tools.zip`
`move #{$dstdir}\\win32tools\\* #{$dstdir}`
FileUtils.rmdir("#{$dstdir}\\win32tools")
`#{$windeployqt} #{$dstdir}/#{$product_name}.exe`
pkgfilename = "#{$product_name}-#{$version_a}.#{$version_b}.#{$version_c}-win32.zip"
Dir.chdir($workdir) {
`7z a #{pkgfilename} soramimi.jp`
}