Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokaro committed Jun 12, 2024
1 parent 2722748 commit bb1d9b9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/ocran/inno_setup_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit bb1d9b9

Please sign in to comment.