Skip to content

Instantly share code, notes, and snippets.

@jonforums
Created June 1, 2011 15:51
Show Gist options
  • Save jonforums/1002607 to your computer and use it in GitHub Desktop.
Save jonforums/1002607 to your computer and use it in GitHub Desktop.
Quick ugly hacks to build development installlers
; Ruby 1.9.3-p9999 Configuration File.
; TODO update to parse from source file/dir, potentially move to main script
#define RubyBuildPlatform "i386-mingw32"
[Setup]
AppId={{17E73B15-62D2-43FD-B851-ACF86A8C9D25}
DefaultDirName={sd}\Ruby193
[Files]
;Source: ..\..\sandbox\doc\ruby_1_9\*.chm; DestDir: {app}\doc
[Icons]
Name: {group}\Documentation\Ruby 1.9.3-p9999 API Reference; Filename: {app}\doc\ruby19.chm; Flags: createonlyiffileexists
diff --git a/recipes/interpreter/ruby19.rake b/recipes/interpreter/ruby19.rake
index a453246..297024f 100644
--- a/recipes/interpreter/ruby19.rake
+++ b/recipes/interpreter/ruby19.rake
@@ -108,6 +108,8 @@ namespace(:interpreter) do
puts "Adding Tcl/Tk dirs..."
package.configure_options << "--with-tcl-dir=#{File.join(RubyInstaller::ROOT, RubyInstaller::Tcl.install_target)}"
package.configure_options << "--with-tk-dir=#{File.join(RubyInstaller::ROOT, RubyInstaller::Tk.install_target)}"
+ package.configure_options << '--with-tklib=tk85-ri'
+ package.configure_options << '--with-tcllib=tcl85-ri'
end
cd package.build_target do
diff --git a/recipes/packager/inno.rake b/recipes/packager/inno.rake
index 90fe3a7..092cfb6 100644
--- a/recipes/packager/inno.rake
+++ b/recipes/packager/inno.rake
@@ -183,7 +183,7 @@ directory 'pkg'
# installer
file "pkg/#{installer_pkg}.exe",
- :needs => ['pkg', "ruby#{namespace_ver}:docs", :book, *files] do
+ :needs => ['pkg', *files] do
options = {
:ruby_version => info[:version],
diff --git a/resources/installer/rubyinstaller.iss b/resources/installer/rubyinstaller.iss
index 752927d..1a53aa5 100644
--- a/resources/installer/rubyinstaller.iss
+++ b/resources/installer/rubyinstaller.iss
@@ -117,7 +117,7 @@ en.DiskSpaceMBLabel=Required free disk space: ~[mb] MB
[Files]
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
Source: {#RubyPath}\*; DestDir: {app}; Excludes: "\bin\tk*-ri.dll,\lib\ruby\{#RubyLibVersion}\tk*.rb,\lib\ruby\{#RubyLibVersion}\tcl*.rb,\lib\ruby\{#RubyLibVersion}\*-tk.rb,\lib\ruby\{#RubyLibVersion}\tk,\lib\ruby\{#RubyLibVersion}\tkextlib"; Flags: recursesubdirs createallsubdirs
-Source: ..\..\sandbox\book\bookofruby.pdf; DestDir: {app}\doc
+;Source: ..\..\sandbox\book\bookofruby.pdf; DestDir: {app}\doc
Source: setrbvars.bat; DestDir: {app}\bin
[Registry]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment