File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 15
15
16
16
task :clean do
17
17
rm zipfile
18
- rm_rf " vendor"
18
+ rm_rf ' vendor'
19
19
end
20
20
21
- desc " Fetch latest build from the GitHub releases"
21
+ desc ' Fetch latest build from the GitHub releases'
22
22
task :update_build do
23
23
unless File . exist? ( zipfile )
24
24
sh "curl -L -O 'https://github.com/alloy/terminal-notifier/archive/#{ zipfile } '"
25
25
end
26
26
27
- rm_rf " vendor"
28
- mkdir " vendor"
27
+ rm_rf ' vendor'
28
+ mkdir ' vendor'
29
29
30
30
sh "unzip -o -d vendor #{ zipfile } "
31
31
mv "vendor/#{ filename } " , 'vendor/terminal-notifier'
32
32
33
- %x(xcodebuild -project '../Terminal \ Notifier.xcodeproj' -target terminal-notifier SYMROOT=build -verbose)
33
+ sh 'cd .. && xcodebuild -target terminal-notifier SYMROOT=build -verbose && cd -'
34
34
mv '../build/Release/terminal-notifier.app' , 'vendor/terminal-notifier/'
35
35
chmod 0755 , 'vendor/terminal-notifier/terminal-notifier.app/Contents/MacOS/terminal-notifier'
36
36
end
37
37
38
- desc " Build gem"
38
+ desc ' Build gem'
39
39
task :gem => :update_build do
40
- sh " gem build terminal-notifier.gemspec"
40
+ sh ' gem build terminal-notifier.gemspec'
41
41
end
42
42
43
- desc " Run specs"
43
+ desc ' Run specs'
44
44
task :spec do
45
- sh " bundle exec ruby spec/terminal-notifier_spec.rb"
45
+ sh ' bundle exec ruby spec/terminal-notifier_spec.rb'
46
46
end
47
47
48
48
task :default => :spec
You can’t perform that action at this time.
0 commit comments