Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F103498
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/packaging/win/deploy.rb b/packaging/win/deploy.rb
index 62acdb0..cfb28c9 100644
--- a/packaging/win/deploy.rb
+++ b/packaging/win/deploy.rb
@@ -1,55 +1,56 @@
require 'fileutils'
$script_dir = __dir__
FileUtils.rm_rf $script_dir + "/build"
FileUtils.rm_rf $script_dir + "/packages/jp.soramimi.guitar/data"
def mkcd(dir)
FileUtils.mkpath dir
FileUtils.chdir dir
end
def run(cmd)
r = system cmd
if !r then
abort "FATAL: " + cmd
end
end
+Dir.chdir $script_dir
FileUtils.rm_rf "zlib"
run "git clone https://github.com/madler/zlib"
FileUtils.cp "../../zlib.pro", "zlib/"
Dir.chdir("zlib") {
run "C:/Qt/5.15.0/msvc2019/bin/qmake.exe zlib.pro"
run "C:/Qt/Tools/QtCreator/bin/jom.exe"
}
-#ENV["INCLUDE"] = $script_path + "/zlib;" + ENV["INCLUDE"]
+ENV["INCLUDE"] = $script_dir + "/zlib;" + ENV["INCLUDE"]
Dir.chdir $script_dir + "/../../"
FileUtils.mkpath "_bin"
run "ruby prepare.rb"
FileUtils.cp $script_dir + "/zlib/_bin/libz.lib", "_bin/"
mkcd $script_dir + "/build"
run "C:/Qt/5.15.0/msvc2019/bin/qmake.exe ../../../Guitar.pro"
run "C:/Qt/Tools/QtCreator/bin/jom.exe"
Dir.chdir $script_dir + "/../../"
run "ruby RELEASE-WINDOWS.rb"
Dir.chdir $script_dir
load '../../version.rb'
pkgname = "Guitar-#{$version_a}.#{$version_b}.#{$version_c}-win32.zip"
run "7z x ../../_release/#{pkgname} -opackages/jp.soramimi.guitar"
mkcd $script_dir + "/packages/jp.soramimi.guitar"
FileUtils.mv "Guitar", "data"
Dir.chdir $script_dir
run "C:/Qt/QtIFW-3.2.2/bin/binarycreator.exe -c config/config.xml -p packages GuitarSetup.exe"
run "curl -T GuitarSetup.exe ftp://10.10.10.5:/Public/pub/nightlybuild/"
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Feb 7, 9:06 AM (14 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
55896
Default Alt Text
(1 KB)
Attached To
Mode
R77 Guitar
Attached
Detach File
Event Timeline
Log In to Comment