six-launcher 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/six/launcher-app.rb +16 -2
- metadata +1 -1
data/Rakefile
CHANGED
data/lib/six/launcher-app.rb
CHANGED
@@ -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"
|