six-launcher 0.0.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/six/launcher-app.rb +16 -2
  3. metadata +1 -1
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ require 'rake/testtask'
12
12
 
13
13
  spec = Gem::Specification.new do |s|
14
14
  s.name = 'six-launcher'
15
- s.version = '0.0.1'
15
+ s.version = '0.1.0'
16
16
  s.has_rdoc = true
17
17
  s.extra_rdoc_files = ['README', 'LICENSE']
18
18
  s.summary = 'Your summary here'
@@ -9,6 +9,7 @@ require 'win32/process'
9
9
  class Setup
10
10
  RUBY = "tools/ruby/bin/ruby.exe"
11
11
  GEM = "tools/ruby/bin/gem"
12
+ VERSION = "0.1.0"
12
13
  #include Singleton
13
14
 
14
15
  BASE_PATH = if ENV['OCRA_EXECUTABLE']
@@ -85,12 +86,12 @@ class Setup
85
86
  detached(File.join(RUBY_PATH, 'bin', 'ruby.exe'), cl, BASE_PATH)
86
87
  end
87
88
 
88
- def start_updater
89
+ def start_updater(params = nil)
89
90
  rubycheck
90
91
  update_gems
91
92
  puts "Starting Updater..."
92
93
  system "#{RUBY} tools/six-downloader.rb tools/six-downloader.yml --output \"#{BASE_PATH}\""
93
- detached(File.join(RUBY_PATH, 'bin', 'ruby.exe'), "-U -rubygems six-updater.rb", BASE_PATH)
94
+ detached(File.join(RUBY_PATH, 'bin', 'ruby.exe'), "-U -rubygems six-updater.rb #{params}", BASE_PATH)
94
95
  end
95
96
 
96
97
  def detached(app, cl, path)
@@ -122,6 +123,14 @@ class Setup
122
123
  start_updater_web
123
124
  when "2"
124
125
  start_updater
126
+ when "21"
127
+ start_updater("--install --startgame")
128
+ when "22"
129
+ start_updater("--install --join")
130
+ when "23"
131
+ start_updater("--startgame")
132
+ when "24"
133
+ start_updater("--join")
125
134
  when "51"
126
135
  start_updater_web("--bind 0.0.0.0")
127
136
  end
@@ -130,11 +139,16 @@ class Setup
130
139
 
131
140
  def options
132
141
  puts
142
+ puts "Launcher application v#{VERSION} by Sickboy"
133
143
  puts "WARNING: If you use Windows Vista/7 with UAC,"
134
144
  puts "please make sure you run this program 'As Administrator'"
135
145
  puts "-----"
136
146
  puts "1 - Start updater-web"
137
147
  puts "2 - Start updater"
148
+ puts "21 - Start updater, --install --startgame"
149
+ puts "22 - Start updater, --install --join"
150
+ puts "23 - Start updater, --startgame"
151
+ puts "24 - Start updater, --join"
138
152
  puts "51 - Start updater-web on public interface"
139
153
  puts "-----"
140
154
  puts "100 - Install/Update Ruby"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: six-launcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ""