Skip to content

Commit

Permalink
[VPN-5914] [VPN-5915] Implement Update and What's New Addons for 2.20 (
Browse files Browse the repository at this point in the history
…#8910) (#8929)

* 2.20 addons

* Remove 2.19 update message addon
  • Loading branch information
Gela authored Jan 9, 2024
1 parent 04aeed6 commit 5781b05
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// Macos v2.16.0 requires a web-based update.
if (api.env.platform === 'macos' && api.env.versionString === '2.16.0') {
api.addon.setTitle(
'message.message_update_v2.19.block.extra_1',
'message.message_update_v2.20.block.extra_1',
'Download the new Mozilla VPN');
api.addon.composer.remove('c_3');
return;
Expand Down Expand Up @@ -51,6 +51,6 @@
api.addon.composer.remove('c_3');

api.addon.setTitle(
'message.message_update_v2.19.block.extra_1',
'message.message_update_v2.20.block.extra_1',
'Download the new Mozilla VPN');
})
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"api_version": "0.1",
"id": "message_update_v2.19",
"name": "Update to Mozilla VPN 2.19",
"id": "message_update_v2.20",
"name": "Update to Mozilla VPN 2.20",
"type": "message",
"conditions": {
"max_client_version": "2.18.9"
Expand All @@ -11,8 +11,8 @@
},
"message": {
"date": 1671066000,
"id": "message_update_v2.19",
"title": "Update to Mozilla VPN 2.19",
"id": "message_update_v2.20",
"title": "Update to Mozilla VPN 2.20",
"subtitle": "We’ve released an updated version of Mozilla VPN! Update to the latest version for the best possible Mozilla VPN experience.",
"badge": "new_update",
"blocks": [
Expand Down Expand Up @@ -45,7 +45,7 @@
{
"id": "extra_1",
"type": "text",
"content": "Download the new Mozilla VPN 2.19"
"content": "Download the new Mozilla VPN 2.20"
}
]
}
Expand Down
File renamed without changes.
File renamed without changes.
32 changes: 32 additions & 0 deletions addons/message_whats_new_v2.20/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"api_version": "0.1",
"id": "message_whats_new_v2.20",
"name": "What's new message",
"type": "message",
"conditions": {
"min_client_version": "2.20.0",
"max_client_version": "2.20.0"
},
"javascript": {
"enable": "setDate.js"
},
"message": {
"date": 1675040400,
"id": "message_whats_new_v2.20",
"title": "You’ve updated to Mozilla VPN 2.20",
"subtitle": "You’re using the latest version of Mozilla VPN.",
"badge": "whats_new",
"blocks": [
{
"id": "c_1-1",
"type": "text",
"content": "This update includes minor bug fixes, UI adjustments and other performance improvements."
},
{
"id": "c_3",
"type": "text",
"content": "Thank you for installing the latest version!"
}
]
}
}
3 changes: 3 additions & 0 deletions addons/message_whats_new_v2.20/setDate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(function (api) {
api.addon.date = (api.settings.updateTime.getTime() / 1000);
})

0 comments on commit 5781b05

Please sign in to comment.