Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix android
  • Loading branch information
dan-online committed Jul 9, 2019
1 parent 67c3223 commit eb282a1
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 314 deletions.
308 changes: 9 additions & 299 deletions Android/assets/androidjs.js

Large diffs are not rendered by default.

12 changes: 8 additions & 4 deletions Android/views/index.html
@@ -1,9 +1,13 @@
<script type="text/javascript" src="../assets/androidjs.js"></script>
<script>
let link = app.deeplink.getLink();
if (link != "-1") {
app.loadURL(link);
} else {
try {
let link = app.deeplink.getLink();
if (linklink != "-1") {
app.loadURL(link);
} else {
app.loadURL("https://github.com");
}
} catch (err) {
app.loadURL("https://github.com");
}
</script>
12 changes: 6 additions & 6 deletions Upload.sh
Expand Up @@ -8,14 +8,14 @@ git add .;
git commit -m "Bump: $1";
sudo npm run package;
echo 'Uploading apk...';
sudo github-release upload --token $GH_TOKEN --owner 'dan-online' --repo 'GitApp' --tag "v$1" --file 'dist/app-aligned-debugSigned.apk' --name "GitApp-android-$1.apk";
sudo github-release upload --token "$GH_TOKEN" --owner 'dan-online' --repo 'GitApp' --tag "v$1" --file 'dist/app-aligned-debugSigned.apk' --name "GitApp-android-$1.apk";
cd ..;
git add .;
git commit -m 'Bump: '$1;
echo "{
'version': '$1',
'state': 'stable',
'scope': 'minor bugfix',
'changes': 'Features and bug fixes',
'download': 'https://github.com/dan-online/GitApp/releases/tag/v$1'
\"version\": \"$1\",
\"state\": \"stable\",
\"scope\": \"minor bugfix\",
\"changes\": \"Features and bug fixes\",
\"download\": \"https://github.com/dan-online/GitApp/releases/tag/v$1\"
}" > releases.json;
10 changes: 5 additions & 5 deletions releases.json
@@ -1,7 +1,7 @@
{
'version': '3.0.4',
'state': 'stable',
'scope': 'minor bugfix',
'changes': 'Features and bug fixes',
'download': 'https://github.com/dan-online/GitApp/releases/tag/v3.0.4'
"version": "3.0.4",
"state": "stable",
"scope": "minor bugfix",
"changes": "Features and bug fixes",
"download": "https://github.com/dan-online/GitApp/releases/tag/v3.0.4"
}

0 comments on commit eb282a1

Please sign in to comment.