From bb1d9b9f93bb0d7ae2af5a1ed3d9aca7a5fc6802 Mon Sep 17 00:00:00 2001 From: shinokaro Date: Thu, 13 Jun 2024 06:41:55 +0900 Subject: [PATCH] log --- lib/ocran/inno_setup_builder.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/ocran/inno_setup_builder.rb b/lib/ocran/inno_setup_builder.rb index 720d7a6..7cfc83e 100644 --- a/lib/ocran/inno_setup_builder.rb +++ b/lib/ocran/inno_setup_builder.rb @@ -33,7 +33,7 @@ def initialize(path, inno_setup_script, chdir_before: nil, icon_path: nil, title @iss = InnoSetupScriptBuilder.new(@inno_setup_script, files: @files.values, dirs: @dirs.values) @iss.build Ocran.verbose_msg "### INNO SETUP SCRIPT ###" - Ocran.verbose_msg File.read(@iss) + puts File.read(@iss) Ocran.msg "Running Inno Setup Command-Line compiler (ISCC)" compile @@ -44,7 +44,7 @@ def compile # it is necessary to provide the ISS file via standard input. type_cmd = "type #{quote_and_escape(convert_path_to_windows(@iss.to_path))}" iscc_cmd = ["ISCC"] - iscc_cmd << "/Q" unless Ocran.verbose + # iscc_cmd << "/Q" unless Ocran.verbose iscc_cmd << "-" cmd = "#{type_cmd} | #{iscc_cmd.join(" ")}" unless system(cmd) @@ -68,6 +68,10 @@ def mkdir(dir) end def copy_file(src, tgt) + if src.to_s.include? "/3.3.0/rubygems/version.rb" + puts src + puts tgt + end unless File.exist?(src) raise "The file does not exist (#{src})" end