Skip to content

Commit

Permalink
Merge pull request #123 from railsinstaller/ruby3.1.3
Browse files Browse the repository at this point in the history
Ruby3.1.3
  • Loading branch information
robertmabbs authored Mar 17, 2023
2 parents 4519885 + c2b277b commit a45f56e
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 11 deletions.
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.0
4.0.1
18 changes: 13 additions & 5 deletions config/railsinstaller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
:name: rails
:version: "7.0.4"

:ruby312:
:ruby313:
:category: component
:title: Ruby 3.1.2
:name: Ruby312
:title: Ruby 3.1.3
:name: Ruby313
:regex: '^.*$'
:url: "https://github.com/robertmabbs/railsinstaller-rubydevkit/releases/download/rubyinstaller-devkit-3.1.2-1-x64/rubyinstaller-devkit-3.1.2-1-x64.7z"
:rename: Ruby3.1.2
:url: "https://github.com/robertmabbs/railsinstaller-rubydevkit/releases/download/rubyinstaller-devkit-3.1.3-1-x64/rubyinstaller-devkit-3.1.3-1-x64.7z"
:rename: Ruby3.1.3

:bsdtar:
:name: BSDTar
Expand All @@ -33,3 +33,11 @@
:binary: "7za.exe"
:regex: '^7za\.exe$'
:url: "http://downloads.sourceforge.net/project/sevenzip/7-Zip/9.20/7za920.zip"

:git:
:category: component
:title: Git 2.38.1
:name: Git
:url: "https://github.com/robertmabbs/railsinstaller-git/releases/download/2.38.1/PortableGit.zip"
:target: "Git"
:regex: '^.*$'
6 changes: 3 additions & 3 deletions lib/railsinstaller/actions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module RailsInstaller
def self.build!

components = [
BSDTar, SevenZip
BSDTar, SevenZip, Git
]

components.each do |package|
Expand All @@ -19,7 +19,7 @@ def self.build!

# link_devkit_with_ruby

# stage_git
# stage_git

# stage_postgresql

Expand Down Expand Up @@ -64,7 +64,7 @@ def self.package!
iscc " \"#{File.join(RailsInstaller::Root, "resources", "railsinstaller", "railsinstaller.iss")}\"",
"/DInstallerVersion=\"#{railsinstaller_version}\"",
"/DStagePath=\"#{RailsInstaller::Stage}\"",
"/DRubyPath=\"#{RailsInstaller::Ruby312.rename}\"",
"/DRubyPath=\"#{RailsInstaller::Ruby313.rename}\"",
"/DResourcesPath=\"#{File.join(RailsInstaller::Root, "resources")}\"",
"/O\"#{RailsInstaller::PackageDir}\"",
"/Frailsinstaller-#{railsinstaller_version}"
Expand Down
4 changes: 2 additions & 2 deletions lib/railsinstaller/methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,15 @@ def self.stage_git
end

def self.stage_gem_update
ruby_path = File.join(Stage, Ruby312.rename)
ruby_path = File.join(Stage, Ruby313.rename)

line = %Q(#{File.join(ruby_path, "bin", "gem")} update )
sh line
end

def self.stage_gems
section Gems
build_gems(File.join(Stage, Ruby312.rename), Gems.list)
build_gems(File.join(Stage, Ruby313.rename), Gems.list)
end

def self.fix_batch_files
Expand Down
3 changes: 3 additions & 0 deletions resources/railsinstaller/railsinstaller.iss
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ en.DiskSpaceMBLabel=Required free disk space: ~[mb] MB
[Files]
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
Source: {#StagePath}\{#RubyPath}\*; DestDir: {app}\{#RubyPath}; Flags: recursesubdirs createallsubdirs
Source: {#StagePath}\Git\*; DestDir: {app}\Git; Flags: recursesubdirs createallsubdirs
;Source: {#StagePath}\Git\*; DestDir: {app}\Git; Check: InstallGit; Flags: recursesubdirs createallsubdirs
;Source: {#StagePath}\DevKit\*; DestDir: {app}\DevKit; Excludes: "config.yml"; Flags: recursesubdirs createallsubdirs
;Source: {#StagePath}\DevKit\config.yml; DestDir: {app}\DevKit; AfterInstall: UpdateDevKitConfig('{app}\{#RubyPath}', '{app}\DevKit\config.yml')
Expand Down Expand Up @@ -161,6 +162,7 @@ begin
if IsModifyPath then
ModifyPath([ExpandConstant('{app}') + '\{#RubyPath}\bin']);
ModifyPath([ExpandConstant('{app}') + '\Git\bin']);
end else
MsgBox('Looks like you''ve got on older, unsupported Windows version.' #13 +
Expand All @@ -187,6 +189,7 @@ begin
if GetPreviousData('PathModified', 'no') = 'yes' then
begin
ModifyPath([ExpandConstant('{app}') + '\{#RubyPath}\bin']);
ModifyPath([ExpandConstant('{app}') + '\Git\bin']);
end
end;
end;
Expand Down

0 comments on commit a45f56e

Please sign in to comment.