Jeremy Ruppel
9c2064eef2
Support leading ".." notation in dependency pathnames
2013-05-14 12:42:58 -07:00
Jeremy Ruppel
f546c67362
Print mutated path if a dependency cannot be found
2013-05-14 12:41:24 -07:00
Watson
2e1855c04d
Merge pull request #86 from tmilewski/master
...
Update user warning to reference correct file path
2013-05-11 06:03:31 -07:00
Devon Blandin
a91ca31910
Update motion require statement in gem template Rakefile
2013-05-10 23:12:46 -05:00
Tom Milewski
f9473c04c7
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-09 18:43:38 -03:00
Watson
2d7998d204
2.0
2013-05-10 00:49:17 +09:00
Watson
39fc96771d
osx: use NSApplication instead of UIApplication
2013-05-10 00:44:43 +09:00
Laurent Sansonetti
b0ed9163e2
print message from license server upon /latest_software_version
2013-05-10 00:44:39 +09:00
Laurent Sansonetti
cfc7bfdb3c
osx: add 'rake archive' tasks, refactor the builder archive/codesign code
2013-05-10 00:44:33 +09:00
Watson
35b495a81a
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-10 00:44:22 +09:00
Laurent Sansonetti
ffe4545eec
osx: only build for the native arch in development mode
2013-05-10 00:44:07 +09:00
Laurent Sansonetti
e0d3cc0e4e
osx 'rake spec' task
2013-05-10 00:43:57 +09:00
Watson
16fe9818d7
abort if build directory is not writable.
2013-05-10 00:43:52 +09:00
Watson
d3f7381361
check whether build directory is writable. if it is not writable, use ./build in project directory as in the past
2013-05-10 00:43:47 +09:00
Laurent Sansonetti
e59a120661
use NSApplicationMain() instead of -[NSApplication run] in order to honor main nib file loading (if it exists)
2013-05-10 00:43:41 +09:00
Laurent Sansonetti
5802a1ba83
move icons, prerendered_icon and fonts to ios config, add icon to osx config
2013-05-10 00:43:35 +09:00
Laurent Sansonetti
83eb68f66b
app.vendor_project how honors :bridgesupport_{cflags,exceptions} options
2013-05-10 00:43:26 +09:00
Laurent Sansonetti
8ed8551699
'motion ri' now honors PAGER env variable
2013-05-10 00:43:20 +09:00
Laurent Sansonetti
ed71b653c2
motion create usage will now print available templates
2013-05-10 00:43:15 +09:00
Watson
9b9daa2c85
remove spaces
2013-05-10 00:43:09 +09:00
Watson
8e6d48c697
osx: import Cocoa/Cocoa.h in vendor.pch for mac
2013-05-10 00:42:10 +09:00
Laurent Sansonetti
01ed2d517a
add command-line plugins
2013-05-10 00:41:25 +09:00
Watson
69fffd0844
convert string to integer
2013-05-10 00:41:02 +09:00
Watson
fea6853739
osx: check the osx version to detect default SDK
2013-05-10 00:40:57 +09:00
Watson
6c3ab0e10d
fix a regression of 5a39c5f381
2013-05-10 00:40:47 +09:00
Laurent Sansonetti
1f92830511
allow 3rd-party templates to be located in ~/Library/RubyMotion/template
2013-05-10 00:40:40 +09:00
Laurent Sansonetti
1312f9369e
osx: i386 support
2013-05-10 00:40:28 +09:00
Watson
548e718782
osx: load all depended frameworks
2013-05-10 00:40:23 +09:00
Watson
de97ec8651
delete trailing whitespaces
2013-05-10 00:40:11 +09:00
Laurent Sansonetti
b26c668ece
quote executable
2013-05-10 00:40:00 +09:00
Laurent Sansonetti
721c171090
add osx repl
2013-05-10 00:39:31 +09:00
Watson
eb6bdd2caa
refactor
2013-05-10 00:38:45 +09:00
Watson
730301ba57
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-05-10 00:38:41 +09:00
Watson
6f3ef17904
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-05-10 00:38:35 +09:00
Watson
3015d8cc6b
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-05-10 00:38:28 +09:00
Watson
79ad1620dc
forget to add a passing argument into another build_file.call
2013-05-10 00:38:22 +09:00
Laurent Sansonetti
2cf2cf569a
more work on osx template: create empty window, add Credits.rtf file
2013-05-10 00:37:29 +09:00
Laurent Sansonetti
2ad0b54052
mark file as utf-8
2013-05-10 00:37:24 +09:00
Watson
b1298ce3e1
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-05-10 00:37:12 +09:00
Watson
bac8d6bf34
pass the build directory as block parameter
...
Proc does not introduce a variable as Proc's scope.
When build process is worked in parallel, the value of the variable is updated in the another build process.
2013-05-10 00:37:05 +09:00
Laurent Sansonetti
e371666883
add menu
2013-05-10 00:36:04 +09:00
Laurent Sansonetti
a9df39ba8f
fix projects containing space characters
2013-05-10 00:35:56 +09:00
Laurent Sansonetti
740d17002e
add debug mode
2013-05-10 00:35:44 +09:00
Watson
66d77079df
fix a bug in detecting file dependencies which cannot detect dependency when declare class/module with like "class XXX::YYY"
...
use @defined :
module XXX::YYY
...
end
use @referred :
class ZZZ
include XXX::YYY
...
end
add the value to @defined and @referred both,
because build system will cut the cyclic references.
2013-05-10 00:35:37 +09:00
Watson
b90bb19a0d
change the build directory for outside files of project
...
This changing will introduce:
1. When run 'rake clean', the object files of gem is not removed. To reduce the time when rebuild the project.
2. Across multiple projects that use the same gem, this changing will share the object files.
3. When update RubyMotion with 'motion update', it will remove the object files to clean up disk space.
2013-05-10 00:34:57 +09:00
Watson
8c54931662
use i386 binary Ruby when build app for ARM
2013-05-10 00:34:33 +09:00
Laurent Sansonetti
06c18cc293
mac port
2013-05-10 00:33:46 +09:00
Watson
7a16c3cdf1
change the template directory path
2013-05-10 00:33:01 +09:00
Watson
4f944cfa6b
add a feature which support the template
2013-05-10 00:32:31 +09:00
Watson
ddacbaf655
fix a bug in build system where it would cause "stack level too deep" error
...
http://hipbyte.myjetbrains.com/youtrack/issue/RM-112
1) specify file dependencies in Rakefile with `app.files_dependencies' by user.
2) detect file dependencies by build system
When merge 1) and 2), it might cause a cyclic references.
So, we will use 1) to detect cyclic references.
2013-04-23 14:33:55 +09:00