Commit Graph

316 Commits

Author SHA1 Message Date
Watson
dcdbf9b4cf display the workaround for tmux users
if use tmux, we need some operation to launch iOS simulator.
2013-06-08 00:24:23 +09:00
Watson
7361d1a879 fix a bug in detecting file dependencies where it will not detect dependencies if contains nested constants
http://hipbyte.myjetbrains.com/youtrack/issue/RM-160
2013-06-05 14:47:36 +09:00
Watson
68aaa64360 fix app.sim_args
Because when passed the arguments as following

    app.sim_args += ["-com.apple.CoreData.SQLDebug 1"]

application will receive the argument like

    argv[1] = ["-com.apple.CoreData.SQLDebug
    argv[2] = 1"]

Expected:

    argv[1] = -com.apple.CoreData.SQLDebug
    argv[2] = 1
2013-06-05 05:03:34 +09:00
Laurent Sansonetti
47dc87abac Merge branch 'master' of github.com:lrz/RubyMotion 2013-06-01 13:22:53 +09:00
Laurent Sansonetti
be6ce1d449 osx: support for entitlements 2013-06-01 13:22:25 +09:00
Laurent Sansonetti
884b9bbe9f add 'build' task that builds for both modes 2013-06-01 13:20:57 +09:00
Jack Chen (chendo)
dfb38c7333 Use absolute path for CONFIGURATION_BUILD_DIR because when using relative xcodeproj path 2013-05-30 08:27:09 +09:00
Laurent Sansonetti
b022b08281 add 'rake static' task (OSX) 2013-05-29 20:27:38 +09:00
Laurent Sansonetti
9b178b69af move ctags to basic project rakefile so that it works with osx 2013-05-29 20:15:14 +09:00
Laurent Sansonetti
913ae11077 app.sim_args 2013-05-29 19:21:10 +09:00
Watson
3e075d47c5 add a feature which passing the arguments on launching app 2013-05-28 09:29:14 +09:00
Watson
e183ad6873 add .gitignore into gem template 2013-05-15 21:49:32 +09:00
Jeremy Ruppel
6fb9560bfb Support leading ".." notation in dependency pathnames 2013-05-15 07:22:45 +09:00
Jeremy Ruppel
6e07a7c746 Print mutated path if a dependency cannot be found 2013-05-15 07:22:39 +09:00
Tom Milewski
39691640ef Correct the path to template.
Users are being notified to require a file ('lib/motion/project/template/ios') that doesn't exist when called from a project's Rakefile.
2013-05-11 22:04:35 +09:00
Devon Blandin
f2000bb03e Update motion require statement in gem template Rakefile 2013-05-11 21:57:53 +09:00
Watson
cc9c4695d7 osx: use NSApplication instead of UIApplication 2013-05-09 21:54:13 +09:00
Laurent Sansonetti
cb4a5876f2 print message from license server upon /latest_software_version 2013-05-08 15:58:49 +02:00
Laurent Sansonetti
d9f670252e osx: add 'rake archive' tasks, refactor the builder archive/codesign code 2013-05-07 16:51:17 +02:00
Watson
0dd3869ff3 fix an error when generate bridgesupport file
Fix the following error:

$ rake --trace
require 'lib/motion/project' is deprecated, please require 'lib/motion/project/template/ios' instead
** Invoke default (first_time)
** Invoke simulator (first_time)
** Invoke build:simulator (first_time)
** Execute build:simulator
RUBYOPT='' /usr/bin/gen_bridge_metadata --format complete --no-64-bit --cflags "  -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -miphoneos-version-min=6.1 -D__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__=60100 -I. -I'.'" "TestFlight.h" -o "TestFlight.bridgesupport" -e
Received exception: missing argument: -e:
2013-05-07 13:29:21 +09:00
Laurent Sansonetti
7085fe7264 osx: only build for the native arch in development mode 2013-05-06 19:52:46 +02:00
Laurent Sansonetti
01ad1cd403 osx 'rake spec' task 2013-05-06 15:14:38 +02:00
Watson
8ab36f94f0 abort if build directory is not writable. 2013-05-06 20:33:00 +09:00
Watson
c456aad83b check whether build directory is writable. if it is not writable, use ./build in project directory as in the past 2013-05-06 16:55:24 +09:00
Laurent Sansonetti
5cfe717841 use NSApplicationMain() instead of -[NSApplication run] in order to honor main nib file loading (if it exists) 2013-05-05 20:45:15 +02:00
Laurent Sansonetti
1c09307fd6 move icons, prerendered_icon and fonts to ios config, add icon to osx config 2013-05-05 20:41:39 +02:00
Laurent Sansonetti
112ed84d70 app.vendor_project how honors :bridgesupport_{cflags,exceptions} options 2013-05-05 01:03:52 +02:00
Laurent Sansonetti
993c77fa16 'motion ri' now honors PAGER env variable 2013-05-05 00:54:32 +02:00
Laurent Sansonetti
fd9f305506 motion create usage will now print available templates 2013-05-04 20:04:06 +02:00
Watson
35acf83ef7 remove spaces 2013-05-05 02:51:24 +09:00
Watson
0ef2142f9a osx: import Cocoa/Cocoa.h in vendor.pch for mac 2013-05-05 02:48:21 +09:00
Laurent Sansonetti
c4fc96bff3 add command-line plugins 2013-05-04 18:59:53 +02:00
Watson
6f74fd29ef convert string to integer 2013-05-04 09:10:08 +09:00
Watson
287a19f38e osx: check the osx version to detect default SDK 2013-05-04 00:30:43 +09:00
Watson
4304aaadc9 fix a regression of 5a39c5f381 2013-05-03 05:31:31 +09:00
Laurent Sansonetti
4897d5fb16 allow 3rd-party templates to be located in ~/Library/RubyMotion/template 2013-05-02 20:36:38 +02:00
Laurent Sansonetti
9b1763c9e6 Merge branch 'master' of github.com:lrz/RubyMotion 2013-05-02 13:52:20 +02:00
Laurent Sansonetti
81479771f2 osx: i386 support 2013-05-02 13:51:28 +02:00
Watson
dca2549d95 osx: load all depended frameworks 2013-05-02 18:37:48 +09:00
Watson
e4ebfcdb4c delete trailing whitespaces 2013-04-30 08:36:43 +09:00
Laurent Sansonetti
4df5b0a356 quote executable 2013-04-30 00:21:27 +02:00
Laurent Sansonetti
8f91c9a052 Merge branch 'master' of github.com:lrz/RubyMotion 2013-04-29 21:07:54 +02:00
Laurent Sansonetti
c7152c8143 add osx repl 2013-04-29 21:07:39 +02:00
Watson
0c10064426 refactor 2013-04-30 01:24:30 +09:00
Watson
0410711198 more fix in detecting file dependencies
if add the constant name into @defined and @referred in #on_const_path_ref,
it might not detect dependencies.
2013-04-29 22:05:28 +09:00
Watson
8591584570 make sure to create a Resources directory for mac
Fix the following error:

$ motion create hello --template=osx
$ cd hello
$ rm -rf resources
$ rake
     Build ./build/MacOSX-10.8-Development
   Compile ./app/app_delegate.rb
   Compile ./app/menu.rb
    Create ./build/MacOSX-10.8-Development/hello.app/Contents
    Create ./build/MacOSX-10.8-Development/hello.app/Contents/MacOS
      Link ./build/MacOSX-10.8-Development/hello.app/Contents/MacOS/hello
    Create ./build/MacOSX-10.8-Development/hello.app/Contents/Info.plist
    Create ./build/MacOSX-10.8-Development/hello.app/Contents/PkgInfo
rake aborted!
No such file or directory - ./build/MacOSX-10.8-Development/hello.app/Contents/Resources
2013-04-29 12:28:09 +09:00
Watson
027df612ab Revert "make sure to create a Resources directory for mac"
This reverts commit 71ed8ce9b3.

This changing causes the following error:
% mkdir -p resources/en.lproj
% touch resources/en.lproj/InfoPlist.strings
% rake
     Build ./build/iPhoneSimulator-6.1-Development
   Compile ./app/app_delegate.rb
    Create ./build/iPhoneSimulator-6.1-Development/tt.app
      Link ./build/iPhoneSimulator-6.1-Development/tt.app/tt
    Create ./build/iPhoneSimulator-6.1-Development/tt.app/Info.plist
    Create ./build/iPhoneSimulator-6.1-Development/tt.app/PkgInfo
      Copy ./resources/Default-568h@2x.png
      Copy ./resources/en.lproj/InfoPlist.strings
rake aborted!
2013-04-29 12:25:56 +09:00
Watson
2bbc2752cd forget to add a passing argument into another build_file.call 2013-04-28 20:23:28 +09:00
Laurent Sansonetti
c252ba9b3a Merge branch 'master' of github.com:lrz/RubyMotion 2013-04-27 16:10:57 +02:00
Laurent Sansonetti
611d52427d more work on osx template: create empty window, add Credits.rtf file 2013-04-27 16:10:13 +02:00