rebuild 0.0.4.pre3 → 0.0.4.pre4
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.
- checksums.yaml +4 -4
- data/lib/rebuild/bootstrap.rb +1 -2
- data/lib/rebuild/version.rb +1 -1
- data/script/start_install.scpt +9 -0
- metadata +2 -3
- data/script/click_agree.scpt +0 -22
- data/script/click_install.scpt +0 -22
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 252205f7757278bc35d1a30b4eb006f1b2f7960c
|
|
4
|
+
data.tar.gz: 961cbda444f2effbbf79d7cfad38a7da0591bd56
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: db4867577ef9dfc494e20101ddd0e29f8086f2f31e5f8ef8023f4dc20f6f689a8d8a5802e371f374d41733c99b2d1671b6ee63c21a327353f48c6864dac8cf9a
|
|
7
|
+
data.tar.gz: ef1c983276fcb8787a549a3b22df9a33085c949bbf6c628c33c4b8f97eab85109f161003bad896b7b41fbb0ed290bc6ee76120694609bbe8608f53e326b6040d
|
data/lib/rebuild/bootstrap.rb
CHANGED
data/lib/rebuild/version.rb
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env osascript
|
|
2
|
+
|
|
3
|
+
-- Fist: Click Install Button
|
|
4
|
+
delay 0.4
|
|
5
|
+
tell application "System Events"
|
|
6
|
+
set installer to "Install Command Line Developer Tools"
|
|
7
|
+
click UI Element "Install" of window 1 of installer
|
|
8
|
+
click UI Element "Agree" of window 1 of installer
|
|
9
|
+
end tell
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rebuild
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.4.
|
|
4
|
+
version: 0.0.4.pre4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Takashi Kokubun
|
|
@@ -73,9 +73,8 @@ files:
|
|
|
73
73
|
- lib/rebuild/runner.rb
|
|
74
74
|
- lib/rebuild/version.rb
|
|
75
75
|
- rebuild.gemspec
|
|
76
|
-
- script/click_agree.scpt
|
|
77
76
|
- script/click_finish.scpt
|
|
78
|
-
- script/
|
|
77
|
+
- script/start_install.scpt
|
|
79
78
|
homepage: https://github.com/k0kubun/rebuild
|
|
80
79
|
licenses:
|
|
81
80
|
- MIT
|
data/script/click_agree.scpt
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env osascript
|
|
2
|
-
|
|
3
|
-
-- Second: Click Agree Button
|
|
4
|
-
set timeoutSeconds to 2.0
|
|
5
|
-
set uiScript to "click UI Element 3 of window 1 of application process \"Install Command Line Developer Tools\""
|
|
6
|
-
my doWithTimeout(uiScript, timeoutSeconds)
|
|
7
|
-
|
|
8
|
-
on doWithTimeout(uiScript, timeoutSeconds)
|
|
9
|
-
set endDate to (current date) + timeoutSeconds
|
|
10
|
-
repeat
|
|
11
|
-
try
|
|
12
|
-
run script "tell application \"System Events\"
|
|
13
|
-
" & uiScript & "
|
|
14
|
-
end tell"
|
|
15
|
-
exit repeat
|
|
16
|
-
on error errorMessage
|
|
17
|
-
if ((current date) > endDate) then
|
|
18
|
-
error "Can not " & uiScript
|
|
19
|
-
end if
|
|
20
|
-
end try
|
|
21
|
-
end repeat
|
|
22
|
-
end doWithTimeout
|
data/script/click_install.scpt
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env osascript
|
|
2
|
-
|
|
3
|
-
-- Fist: Click Install Button
|
|
4
|
-
set timeoutSeconds to 1.0
|
|
5
|
-
set uiScript to "click UI Element 4 of window 1 of application process \"Install Command Line Developer Tools\""
|
|
6
|
-
my doWithTimeout(uiScript, timeoutSeconds)
|
|
7
|
-
|
|
8
|
-
on doWithTimeout(uiScript, timeoutSeconds)
|
|
9
|
-
set endDate to (current date) + timeoutSeconds
|
|
10
|
-
repeat
|
|
11
|
-
try
|
|
12
|
-
run script "tell application \"System Events\"
|
|
13
|
-
" & uiScript & "
|
|
14
|
-
end tell"
|
|
15
|
-
exit repeat
|
|
16
|
-
on error errorMessage
|
|
17
|
-
if ((current date) > endDate) then
|
|
18
|
-
error "Can not " & uiScript
|
|
19
|
-
end if
|
|
20
|
-
end try
|
|
21
|
-
end repeat
|
|
22
|
-
end doWithTimeout
|