Add touch events

This commit is contained in:
2014-12-16 22:14:47 +01:00
parent 9b72ff173f
commit 6a8d517727
14 changed files with 2140 additions and 53 deletions
+18 -4
View File
@@ -5,7 +5,7 @@ require 'pry'
class String; def to_version; Versionomy.parse(self) end end
HOME=ENV['HOME']
APP_ROOT="#{HOME}/Documents/workspace/mozo"
APP_ROOT="#{HOME}/Documents/workspace/mozo-mobile-app"
APP_ASSET_ROOT="#{APP_ROOT}/www/assets"
app_config_path = File.join(APP_ROOT, 'config.xml')
app_config = File.read(app_config_path)
@@ -29,10 +29,24 @@ end
`rm -rf public/assets`
`QWAITER_MOBILE_EXPORT=yes RAILS_ENV=user_app bundle exec rake assets:precompile`
`find public/assets -name "*.gz" -exec rm -f {} \\;`
`./bin/dedigest_assets`
%w[
supplier
cmtool
waiter
admin
qr_sheet
site
cartoon
frames
tinymce
textures
jquery-ui
icons
].each{|folder| `rm -rf public/assets/#{folder}`}
`time ./bin/dedigest_assets`
# correct stuff
`./bin/user_asset_corrections`
`time ./bin/user_asset_corrections`
# now move stuff to a cleaned up cordova location
`cp -r public/assets/user #{APP_ASSET_ROOT}/user`
@@ -61,4 +75,4 @@ end
# Set app versions
File.open(app_config_path, 'w+'){|f| f.puts app_config.sub(%[version="#{current_version}"], %[version="#{new_version}"])}
File.open(app_index_html_path, 'w+'){ |f| f.puts app_index_html.sub(/$app_version\s*=\s*'([\.\d]+)'/, "$app_version = '#{new_version.to_s}'") }
File.open(app_index_html_path, 'w+'){ |f| f.puts app_index_html.sub(/app_version\s*=\s*'([\.\d]+)'/, "app_version = '#{new_version.to_s}'") }