mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-28 20:55:36 +08:00
installer with postinstall script that opens the getting started guide
This commit is contained in:
@@ -190,7 +190,7 @@ class UpdateCommand < Command
|
||||
curl("-# \"#{url}\" -o #{tmp_dest}")
|
||||
|
||||
$stderr.puts "Installing software update..."
|
||||
installer = "/usr/sbin/installer -pkg \"#{tmp_dest}\" -target / >& /tmp/installer.stderr"
|
||||
installer = "MOTION_UPDATE=1 /usr/sbin/installer -pkg \"#{tmp_dest}\" -target / >& /tmp/installer.stderr"
|
||||
unless system(installer)
|
||||
die "An error happened when installing the software update: #{File.read('/tmp/installer.stderr')}"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user