diff options
author | Cluster <clusterrr@clusterrr.com> | 2015-04-09 19:57:33 +0300 |
---|---|---|
committer | Cluster <clusterrr@clusterrr.com> | 2015-04-09 19:57:33 +0300 |
commit | c75d0b9ec3b6be315333e65f7d6bb6f2f82f799e (patch) | |
tree | 1c89126903c7546b723124063afbc61dd6b581ec | |
parent | c125074f0749acc9e7a67c0ff1ec6faba4ca5cc2 (diff) |
Updated binary and readme
-rw-r--r-- | README.md | 12 | ||||
-rw-r--r-- | graphics.pxi | bin | 1051596 -> 0 bytes | |||
-rw-r--r-- | mario.pbw | bin | 21828 -> 40580 bytes | |||
-rw-r--r-- | mario_bw.gif | bin | 0 -> 189721 bytes | |||
-rw-r--r-- | mario_color.gif | bin | 0 -> 2828712 bytes | |||
-rw-r--r-- | preview.png | bin | 144012 -> 0 bytes | |||
-rw-r--r-- | screencast.gif | bin | 17071 -> 0 bytes | |||
-rw-r--r-- | wscript | 48 |
8 files changed, 50 insertions, 10 deletions
@@ -1,16 +1,18 @@ -# Mario Pebble Watch Face -_by Denis Dzyubenko, mod by Alexey Avdyukhin_ +# Mario Watchface for Pebble Classic and Pebble Time +_by Denis Dzyubenko and Alexey Avdyukhin_ Mario jumps every minute. -[![Preview](https://github.com/shadone/pebble-mario/raw/master/preview.png)](https://github.com/shadone/pebble-mario/raw/master/preview.png) +[![Preview](mario_color.gif)](mario_color.gif) [![Preview](mario_bw.gif)](mario_bw.gif) -Based on a concept by Habib: +Based on a concept by Denis Dzyubenko: +https://github.com/shadone/pebble-mario + +Which based on a concept by Habib: http://www.mypebblefaces.com/view?fID=290&aName=Habib&pageTitle=MarioTime&auID=265 Download: [mario.pbw](mario.pbw?raw=true) - Animation: ![animation](https://github.com/shadone/pebble-mario/raw/master/screencast.gif) diff --git a/graphics.pxi b/graphics.pxi Binary files differBinary files differdeleted file mode 100644 index 0a727cb..0000000 --- a/graphics.pxi +++ /dev/null diff --git a/mario_bw.gif b/mario_bw.gif Binary files differnew file mode 100644 index 0000000..536afb9 --- /dev/null +++ b/mario_bw.gif diff --git a/mario_color.gif b/mario_color.gif Binary files differnew file mode 100644 index 0000000..3b0575d --- /dev/null +++ b/mario_color.gif diff --git a/preview.png b/preview.png Binary files differdeleted file mode 100644 index 960f94b..0000000 --- a/preview.png +++ /dev/null diff --git a/screencast.gif b/screencast.gif Binary files differdeleted file mode 100644 index d7b864e..0000000 --- a/screencast.gif +++ /dev/null @@ -1,10 +1,17 @@ -# + # # This file is the default set of rules to compile a Pebble project. # # Feel free to customize this to your needs. # +import os.path +try: + from sh import CommandNotFound, jshint, cat, ErrorReturnCode_2 + hint = jshint +except (ImportError, CommandNotFound): + hint = None + top = '.' out = 'build' @@ -15,10 +22,41 @@ def configure(ctx): ctx.load('pebble_sdk') def build(ctx): + if False and hint is not None: + try: + hint([node.abspath() for node in ctx.path.ant_glob("src/**/*.js")], _tty_out=False) # no tty because there are none in the cloudpebble sandbox. + except ErrorReturnCode_2 as e: + ctx.fatal("\nJavaScript linting failed (you can disable this in Project Settings):\n" + e.stdout) + + # Concatenate all our JS files (but not recursively), and only if any JS exists in the first place. + ctx.path.make_node('src/js/').mkdir() + js_paths = ctx.path.ant_glob(['src/*.js', 'src/**/*.js']) + if js_paths: + ctx(rule='cat ${SRC} > ${TGT}', source=js_paths, target='pebble-js-app.js') + has_js = True + else: + has_js = False + ctx.load('pebble_sdk') - ctx.pbl_program(source=ctx.path.ant_glob('src/**/*.c'), - target='pebble-app.elf') + build_worker = os.path.exists('worker_src') + binaries = [] + + for p in ctx.env.TARGET_PLATFORMS: + ctx.set_env(ctx.all_envs[p]) + ctx.set_group(ctx.env.PLATFORM_NAME) + app_elf='{}/pebble-app.elf'.format(p) + ctx.pbl_program(source=ctx.path.ant_glob('src/**/*.c'), + target=app_elf) + + if build_worker: + worker_elf='{}/pebble-worker.elf'.format(p) + binaries.append({'platform': p, 'app_elf': app_elf, 'worker_elf': worker_elf}) + ctx.pbl_worker(source=ctx.path.ant_glob('worker_src/**/*.c'), + target=worker_elf) + else: + binaries.append({'platform': p, 'app_elf': app_elf}) - ctx.pbl_bundle(elf='pebble-app.elf', - js=ctx.path.ant_glob('src/js/**/*.js')) + ctx.set_group('bundle') + ctx.pbl_bundle(binaries=binaries, js='pebble-js-app.js' if has_js else []) +
\ No newline at end of file |