Skip to content

Commit

Permalink
tool to generate various icon sizes
Browse files Browse the repository at this point in the history
see #1 and #4
  • Loading branch information
sheppard committed Jan 6, 2017
1 parent 0696ae5 commit ee0bde6
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -5,4 +5,7 @@ htdocs
lib
themes.css
*.appcache
icon-180.png
icon-192.png
icon-512.png
.wq-pgb
19 changes: 16 additions & 3 deletions app/config.xml
Expand Up @@ -5,17 +5,30 @@
version = "{% templatetag openvariable %}version{% templatetag closevariable %}" >
<name>{{ project_name }} Project</name>
<description>{{ project_name }} Project</description>
{% verbatim %}
<platform name="android">
{{#android.icons}}
<icon src="{{filename}}" density="{{alias}}" />
{{/android.icons}}
</platform>

<platform name="ios">
{{#ios.icons}}
<icon src="{{filename}}" width="{{width}}" height="{{height}}" />
{{/ios.icons}}
</platform>

<platform name="android" />
<platform name="ios" />
<platform name="windows">
<preference name="windows-appx-target" value="uap" />
<preference name="windows-arch" value="anycpu" />
{{#windows.icons}}
<icon src="{{filename}}" width="{{width}}" height="{{height}}" />
{{/windows.icons}}
</platform>

<plugin name="cordova-plugin-camera" />
<plugin name="cordova-plugin-geolocation" />
<plugin name="cordova-plugin-whitelist" />
<access origin="*" />

{% endverbatim %}
</widget>
Binary file removed app/images/icon-180.png
Binary file not shown.
Binary file removed app/images/icon-192.png
Binary file not shown.
Binary file removed app/images/icon-512.png
Binary file not shown.
8 changes: 8 additions & 0 deletions app/wq.yml
Expand Up @@ -34,6 +34,13 @@ setversion:
filename: ../version.txt
jsout: js/data/version.js

# Generate web icons
icons:
source: images/icon-1024.png
outdir: images/
filename: icon-{size}.png
size: web

# Generate Application Cache manifest
appcache:
name: "{{ project_name }}.appcache"
Expand All @@ -57,3 +64,4 @@ phonegap:
pgb_directory: ../.wq-pgb
config_xml: config.xml
index_html: index-phonegap.html
icon: images/icon-1024.png
1 change: 1 addition & 0 deletions deploy.sh
Expand Up @@ -14,6 +14,7 @@ wq maketemplates \

# Build javascript with wq.app
cd app;
wq icons;
wq build $1;

# Force important files through any unwanted server caching
Expand Down

0 comments on commit ee0bde6

Please sign in to comment.