Skip to content

Instantly share code, notes, and snippets.

@fum1h1ro
Created June 27, 2012 06:11
Show Gist options
  • Save fum1h1ro/3001868 to your computer and use it in GitHub Desktop.
Save fum1h1ro/3001868 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
# filetype: ruby
# encoding: utf8
# プレイヤーからのビルド後にパッチを適用する
PATCH = '/usr/bin/patch'
pwd = ARGV[0]
target = ARGV[1]
appcontroller = "#{pwd}/Classes/AppController.mm"
patch = "#{pwd}/Libraries/AppController.mm.patch"
cmdline = "#{PATCH} -u #{appcontroller} < #{patch}"
system cmdline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment