six-launcher 0.1.4 → 0.1.5
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 +9 -8
- metadata +2 -2
data/Rakefile
CHANGED
data/lib/six/launcher-app.rb
CHANGED
@@ -9,7 +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.
|
12
|
+
VERSION = "0.1.5"
|
13
13
|
#include Singleton
|
14
14
|
|
15
15
|
BASE_PATH = if ENV['OCRA_EXECUTABLE']
|
@@ -35,6 +35,7 @@ class Setup
|
|
35
35
|
end
|
36
36
|
TOOL_PATH = File.join(BASE_PATH, 'tools')
|
37
37
|
RUBY_PATH = File.join(TOOL_PATH, 'ruby')
|
38
|
+
RUBY_BIN = File.join(RUBY_PATH, 'bin', 'ruby.exe')
|
38
39
|
|
39
40
|
def initialize(b = nil)
|
40
41
|
verify_admin
|
@@ -66,7 +67,7 @@ class Setup
|
|
66
67
|
end
|
67
68
|
|
68
69
|
def rubycheck
|
69
|
-
update_ruby unless File.exists?(
|
70
|
+
update_ruby unless File.exists?(RUBY_BIN)
|
70
71
|
end
|
71
72
|
|
72
73
|
def bla
|
@@ -99,14 +100,14 @@ class Setup
|
|
99
100
|
else
|
100
101
|
b
|
101
102
|
end
|
102
|
-
detached(
|
103
|
+
detached(RUBY_BIN, cl, BASE_PATH)
|
103
104
|
end
|
104
105
|
|
105
106
|
def start_updater(params = nil)
|
106
107
|
rubycheck
|
107
108
|
update_gems
|
108
109
|
puts "Starting Updater..."
|
109
|
-
detached(
|
110
|
+
detached(RUBY_BIN, "-U -rubygems six-updater.rb #{params}", BASE_PATH)
|
110
111
|
end
|
111
112
|
|
112
113
|
def detached(app, cl, path)
|
@@ -139,13 +140,13 @@ class Setup
|
|
139
140
|
when "2"
|
140
141
|
start_updater
|
141
142
|
when "21"
|
142
|
-
start_updater("--install --startgame")
|
143
|
+
start_updater("--install --startgame --wait")
|
143
144
|
when "22"
|
144
|
-
start_updater("--install --join")
|
145
|
+
start_updater("--install --join --wait")
|
145
146
|
when "23"
|
146
|
-
start_updater("--startgame")
|
147
|
+
start_updater("--startgame --wait")
|
147
148
|
when "24"
|
148
|
-
start_updater("--join")
|
149
|
+
start_updater("--join --wait")
|
149
150
|
when "51"
|
150
151
|
start_updater_web("--bind 0.0.0.0")
|
151
152
|
end
|
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.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ""
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-13 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|