diff --git a/.gitignore b/.gitignore index a291161e..1454af6a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ # Node.js package manager /node_modules /npm-debug.log +dist +package_dist +webogram*.zip \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..af4aac73 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +bump: + sed -i.bak 's/"version": ".*",/"version": "$(version)",/g' app/manifest.json + sed -i.bak 's/"version": ".*",/"version": "$(version)",/g' app/manifest.webapp + sed -i.bak 's/alpha .*<\/span>/alpha $(version)<\/span>/g' app/partials/settings_modal.html + rm app/manifest.json.bak app/manifest.webapp.bak app/partials/settings_modal.html.bak + +package: + rm -rf package_dist + cp -r app package_dist + sed -i.bak 's/\(<\!-- ng-csp="" -->\)//g' package_dist/index.html + sed -n -i.bak '1h;1!H;$${;g;s/ - @@ -57,5 +47,16 @@ + + + diff --git a/app/manifest.json b/app/manifest.json index 5073ad82..1c1d153f 100644 --- a/app/manifest.json +++ b/app/manifest.json @@ -1,6 +1,6 @@ { "name": "Telegram UNOFFICIAL", - "version": "0.0.15", + "version": "0.0.16", "short_name": "Webogram", "manifest_version": 2, "app": { @@ -22,4 +22,4 @@ "90": "img/icons/icon90.png", "128": "img/icons/icon128.png" } -} \ No newline at end of file +} diff --git a/app/manifest.webapp b/app/manifest.webapp index 371f3a17..d0dc124d 100644 --- a/app/manifest.webapp +++ b/app/manifest.webapp @@ -1,7 +1,7 @@ { "name": "Webogram", "description": "Webogram – UNOFFICIAL Telegram Web App.\nMore info & source code here: https://github.com/zhukov/webogram", - "version": "0.0.15", + "version": "0.0.16", "launch_path": "/index.html", "developer": { "name": "Igor Zhukov", @@ -24,4 +24,4 @@ "120": "/img/icons/icon120.png", "128": "/img/icons/icon128.png" } -} \ No newline at end of file +} diff --git a/app/partials/head.html b/app/partials/head.html index 12d8bcf4..2861880f 100644 --- a/app/partials/head.html +++ b/app/partials/head.html @@ -8,7 +8,7 @@ - +