Browse Source

added Makefile, 0.0.16 release

master
Igor Zhukov 11 years ago
parent
commit
0ed119c9af
  1. 3
      .gitignore
  2. 23
      Makefile
  3. 21
      app/index.html
  4. 4
      app/manifest.json
  5. 4
      app/manifest.webapp
  6. 2
      app/partials/head.html
  7. 4
      app/partials/settings_modal.html

3
.gitignore vendored

@ -3,3 +3,6 @@
# Node.js package manager # Node.js package manager
/node_modules /node_modules
/npm-debug.log /npm-debug.log
dist
package_dist
webogram*.zip

23
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/<span class="settings_version">alpha .*<\/span>/<span class="settings_version">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/<html lang="en" ng-app="myApp">\(<\!-- ng-csp="" -->\)/<html lang="en" ng-app="myApp" ng-csp="">/g' package_dist/index.html
sed -n -i.bak '1h;1!H;$${;g;s/<script>.*<\/script>/ /p;}' package_dist/index.html
rm package_dist/index.html.bak
rm package_dist/img/screenshot*
find package_dist | grep DS_Store | xargs rm -rf
cd package_dist && zip -r ../webogram_v$(version).zip .
publish:
rm -rf dist/*
cp -r app/* dist/
cd dist
git add .
git commit -am "merged with master"
git push origin gh-pages

21
app/index.html

@ -21,16 +21,6 @@
<div ng-view></div> <div ng-view></div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-45099287-2');
ga('send', 'pageview');
</script>
<script type="text/javascript" src="vendor/console-polyfill/console-polyfill.js?1"></script> <script type="text/javascript" src="vendor/console-polyfill/console-polyfill.js?1"></script>
<script type="text/javascript" src="vendor/jquery/jquery.min.js"></script> <script type="text/javascript" src="vendor/jquery/jquery.min.js"></script>
<script type="text/javascript" src="vendor/jquery.nanoscroller/nanoscroller.js"></script> <script type="text/javascript" src="vendor/jquery.nanoscroller/nanoscroller.js"></script>
@ -57,5 +47,16 @@
<script type="text/javascript" src="js/filters.js?4"></script> <script type="text/javascript" src="js/filters.js?4"></script>
<script type="text/javascript" src="js/directives.js?20"></script> <script type="text/javascript" src="js/directives.js?20"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-45099287-2');
ga('send', 'pageview');
</script>
</body> </body>
</html> </html>

4
app/manifest.json

@ -1,6 +1,6 @@
{ {
"name": "Telegram UNOFFICIAL", "name": "Telegram UNOFFICIAL",
"version": "0.0.15", "version": "0.0.16",
"short_name": "Webogram", "short_name": "Webogram",
"manifest_version": 2, "manifest_version": 2,
"app": { "app": {
@ -22,4 +22,4 @@
"90": "img/icons/icon90.png", "90": "img/icons/icon90.png",
"128": "img/icons/icon128.png" "128": "img/icons/icon128.png"
} }
} }

4
app/manifest.webapp

@ -1,7 +1,7 @@
{ {
"name": "Webogram", "name": "Webogram",
"description": "Webogram – UNOFFICIAL Telegram Web App.\nMore info & source code here: https://github.com/zhukov/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", "launch_path": "/index.html",
"developer": { "developer": {
"name": "Igor Zhukov", "name": "Igor Zhukov",
@ -24,4 +24,4 @@
"120": "/img/icons/icon120.png", "120": "/img/icons/icon120.png",
"128": "/img/icons/icon128.png" "128": "/img/icons/icon128.png"
} }
} }

2
app/partials/head.html

@ -8,7 +8,7 @@
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
</button> </button>
<a class="navbar-brand" href="http://zhukov.github.io/webogram"><img src="img/Logo_2x.png" class="tg_head_logo" alt="Telegram logo" width="110" height="31" /></a> <a class="navbar-brand" href="#/im"><img src="img/Logo_2x.png" class="tg_head_logo" alt="Telegram logo" width="110" height="31" /></a>
<ul class="nav navbar-nav navbar-quick-nav" ng-show="curDialog.peer"> <ul class="nav navbar-nav navbar-quick-nav" ng-show="curDialog.peer">
<li> <li>
<a href="#/im"> <a href="#/im">

4
app/partials/settings_modal.html

@ -61,7 +61,7 @@
<p> <p>
<strong>Version: </strong> <strong>Version: </strong>
<span class="settings_version">alpha 0.0.15</span> <span class="settings_version">alpha 0.0.16</span>
</p> </p>
<hr/> <hr/>
@ -70,4 +70,4 @@
<a href="" ng-click="logOut()">Log out</a> <a href="" ng-click="logOut()">Log out</a>
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save