Skip to content

Commit

Permalink
Getting ready for release 0.7.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewbauer committed Jun 8, 2015
1 parent c6cee7a commit 5b47165
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = (grunt) ->
version: '<%= app.electron.version %>'
platform: 'darwin'
arch: 'x64'
sign: 'Mac Developer: Matthew Bauer (86DMNNXPP9)'
sign: '"Mac Developer: Matthew Bauer (86DMNNXPP9)"'
prune: true
asar: true
icon: '<%= app.icns %>'
Expand Down Expand Up @@ -126,7 +126,7 @@ module.exports = (grunt) ->
shell:
run: command: 'electron .'
grunt.registerTask 'run', ['shell:run']
grunt.registerTask 'package-osx', ['app.asar', 'electron:darwin-x64', 'appdmg']
grunt.registerTask 'package-osx', ['app.asar', 'electron:darwin-x64']
grunt.registerTask 'package-win', ['electron:win32-x64']
grunt.registerTask 'install', ['electron-rebuild']
grunt.registerTask 'app', ['coffee:app', 'cson:app', 'copy:app', 'copy:dependencies']
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
"build": "grunt build"
},
"dependencies": {
"atom-keymap": "^5.1.5",
"coffee-script": "^1.9.3",
"cson": "^3.0.1",
"gametime-db": "^0.6.7",
"gametime-nointro": "^0.5.2",
"gametime-player": "^0.6.14",
"gametime-player": "^0.6.16",
"gametime-retro": "^0.1.4",
"jquery": "^2.1.4",
"node-retro": "^0.6.11",
"libretro": "^0.1.1",
"node-retro": "^0.6.13",
"request": "^2.57.0",
"season": "^5.2.0",
"space-pen": "^5.1.1",
"underscore": "^1.8.3"
},
Expand Down
6 changes: 3 additions & 3 deletions src/core.coffee
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
path = require 'path'
CSON = require './cson'

CSON = require 'season'
path = require 'path'

{Core} = require 'node-retro'
{getCore} = require 'gametime-retro'

cores = CSON.readFileSync CSON.resolve path.normalize "./cores/base"
cores = CSON.requireFile '../cores/base'

module.exports.getCore = (rom) ->
new Promise (resolve, reject) ->
Expand Down
9 changes: 9 additions & 0 deletions src/cson.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
cson = require 'CSON'

module.exports = cson
cson._requireFile = cson.requireFile
module.exports.requireFile = (filename) ->
try
return cson._requireFile require.resolve "#{filename}.json"
catch error
return cson._requireFile require.resolve "#{filename}.cson"
2 changes: 1 addition & 1 deletion src/game.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Model = require './Model'
Model = require './model'
db = require './db_asar'
PlayerView = require './player-view'

Expand Down
8 changes: 5 additions & 3 deletions src/keys.coffee
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
$ = require 'jquery'
CSON = require 'season'
path = require 'path'
keymaps = CSON.readFileSync CSON.resolve path.normalize './keymaps/base.cson'

$ = require 'jquery'
CSON = require './cson'

keymaps = CSON.requireFile '../keymaps/base'

$(window).on 'keydown', (event) ->
for selector, keys of keymaps
Expand Down
2 changes: 1 addition & 1 deletion src/player-input.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
retro = require 'node-retro'
retro = require 'libretro'

module.exports =
class Input
Expand Down
5 changes: 4 additions & 1 deletion static/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// bootstrap script

require('coffee-script').register();
try {
require('coffee-script').register();
} catch(e) {
}

window.resizeTo(1200, 600);
var $ = require('jquery');
Expand Down
5 changes: 4 additions & 1 deletion static/player.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// bootstrap script

require('coffee-script').register();
try {
require('coffee-script').register();
} catch(e) {
}

var $ = require('jquery');
$(function() {
Expand Down

0 comments on commit 5b47165

Please sign in to comment.