Skip to content

Commit

Permalink
Added chrome & firefox update files
Browse files Browse the repository at this point in the history
  • Loading branch information
GoddeerisEdouard committed Nov 26, 2024
1 parent 437fe77 commit 8fe93f8
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,21 @@

This branch will contain the updated files for every platform.
These files will be published here and hosted on GitHub Pages.
Extensions use these Github URLs to check for new versions of the extension.
Extensions use these Github URLs to check for new versions of the extension.

# Releasing an update
What to do with these files when releasing an update of this extension

## Chrome
The [update.xml](./platform/chrome/update.xml) can only contain the latest version.
So just update the `codebase` (.crx) link & `version` (X.X.X) attributes.

## Firefox
The [updates.json](./platform/firefox/updates.json) can contain all versions, even the previous ones.
So add an extra element in the `updates` list in this format:
```json
{
"version": "X.X.X",
"update_link": "...xpi"
}
```
6 changes: 6 additions & 0 deletions platform/chrome/update.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<gupdate xmlns="http://www.google.com/update2/response" protocol="2.0">
<app appid="hhiklmonojiamcmfnfhpeippeiehcpok">
<updatecheck codebase="https://github.com/GoddeerisEdouard/UGentAutoLogin/releases/download/1.2.0/uGentAutoLogin.crx" version="1.2.0" />
</app>
</gupdate>
12 changes: 12 additions & 0 deletions platform/firefox/updates.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"addons": {
"ugentautologin@example.com": {
"updates": [
{
"version": "1.2.0",
"update_link": "https://github.com/GoddeerisEdouard/UGentAutoLogin/releases/download/1.2.0/uGentAutoLogin.xpi"
}
]
}
}
}

0 comments on commit 8fe93f8

Please sign in to comment.