Skip to content
This repository was archived by the owner on Nov 11, 2025. It is now read-only.

Commit 1b9d20f

Browse files
committed
add update_url
1 parent 4467d86 commit 1b9d20f

2 files changed

Lines changed: 27 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,32 @@ jobs:
1818
- run: |
1919
export DISPLAY=:99
2020
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
21-
chrome --pack-extension=trektor
21+
echo -n "${CHROME_EXTENSION_KEY}" > trektor.pem
22+
chrome --pack-extension=trektor --pack-extension-key=trektor.pem
23+
env:
24+
CHROME_EXTENSION_KEY: ${{ secrets.CHROME_EXTENSION_KEY }}
2225
- uses: "softprops/action-gh-release@v1"
2326
with:
2427
files: "trektor.crx"
28+
29+
pages:
30+
runs-on: ubuntu-latest
31+
needs: [crx]
32+
steps:
33+
- uses: actions/checkout@v2
34+
with:
35+
ref: gh-pages
36+
- run: |
37+
curl -LOf "https://github.com/aboutsource/trektor/releases/download/${GITHUB_REF##*/}/trektor.crx"
38+
cat > update.xml <<EOF
39+
<gupdate xmlns="http://www.google.com/update2/response" protocol="2.0">
40+
<app appid="lffnocdloekhnmiadpgfgknfbhgnppgl">
41+
<updatecheck codebase="https://aboutsource.github.io/trektor/trektor.crx" version="${GITHUB_REF##*/}"/>
42+
</app>
43+
</gupdate>
44+
EOF
45+
git config user.name github-actions
46+
git config user.email github-actions@github.com
47+
git add .
48+
git commit -m "release ${GITHUB_REF##*/}"
49+
git push

manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "Trektor",
4+
"update_url": "https://aboutsource.github.io/trektor/update.xml",
45
"description": "Browser-Extension zum automatischen Anlegen von Toggl tracking tasks",
56
"version": "0.0.4",
67
"browser_specific_settings": {

0 commit comments

Comments
 (0)