Skip to content

Commit

Permalink
Update version_check.php
Browse files Browse the repository at this point in the history
  • Loading branch information
canton7 committed Oct 5, 2018
1 parent cf86be1 commit eea3ac1
Showing 1 changed file with 62 additions and 42 deletions.
104 changes: 62 additions & 42 deletions server/version_check.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,25 @@ function get_with_wildcard($src, $value, $default = null)
}

$versions = [
'1.1.22' => [
'base_url' => 'https://github.com/canton7/SyncTrayzor/releases/download',
'installed' => [
'direct_download_url' => [
'x64' => "{base_url}/v{version}/SyncTrayzorSetup-x64.exe",
'x86' => "{base_url}/v{version}/SyncTrayzorSetup-x86.exe",
],
],
'portable' => [
'direct_download_url' => [
'x64' => "{base_url}/v{version}/SyncTrayzorPortable-x64.zip",
'x86' => "{base_url}/v{version}/SyncTrayzorPortable-x86.zip",
],
],
'sha1sum_download_url' => "{base_url}/v{version}/sha1sum.txt.asc",
'sha512sum_download_url' => "{base_url}/v{version}/sha512sum.txt.asc",
'release_page_url' => 'https://github.com/canton7/SyncTrayzor/releases/tag/v{version}',
'release_notes' => "- Fix some crashes (#443, #463, #468, #471)\n- Show the folder name, not ID, in the file transfers progress tooltip (#457)\n- Add tray button to rescan all folders (#465)\n- Show change in Syncthing theme without requiring refresh (#472)\n- Allow STTRACE to be set in env vars in settings (#473)\n- Fix slow memory leak (#479)",
],
'1.1.21' => [
'base_url' => 'https://synctrayzor.antonymale.co.uk/download',
'installed' => [
Expand All @@ -82,55 +101,56 @@ function get_with_wildcard($src, $value, $default = null)
'sha1sum_download_url' => "{base_url}/v{version}/sha1sum.txt.asc",
'sha512sum_download_url' => "{base_url}/v{version}/sha512sum.txt.asc",
'release_page_url' => 'https://github.com/canton7/SyncTrayzor/releases/tag/v{version}',
'release_notes' => "!!!!!\nYou must upgrade to v1.1.21 now, otherwise auto-upgrades will stop working!\n!!!!!\n\n- Fix \"Syncthing failed to start correctly\" message when shutting down Windows (#438)\n- Handle \"Access denied\" errors when resolving conflicts (#440)",
'release_notes' => "!!!!!\nYou must upgrade to v1.1.21 now, otherwise auto-upgrades will stop working!\n!!!!!\n\nFurther upgrades will be available once you have upgraded to v1.1.21.",
]
];

$upgrades = [
// Github start supporting tls3 only, and versions prior to 1.1.20 didn't support this. 1.1.20 and 1.1.21 are hosted on my server. 1.1.20 can download
// directly from github, but versions prior have to use my server.
'1.1.20' => ['to' => 'latest', 'formatter' => '5', 'overrides' => ['base_url' => 'https://github.com/canton7/SyncTrayzor/releases/download', 'release_notes' => "- Fix \"Syncthing failed to start correctly\" message when shutting down Windows (#438)\n- Handle \"Access denied\" errors when resolving conflicts (#440)"]],
'1.1.19' => ['to' => 'latest', 'formatter' => '5'],
'1.1.18' => ['to' => 'latest', 'formatter' => '5'],
'1.1.17' => ['to' => 'latest', 'formatter' => '5'],
'1.1.16' => ['to' => 'latest', 'formatter' => '5'],
'1.1.15' => ['to' => 'latest', 'formatter' => '5'],
'1.1.14' => ['to' => 'latest', 'formatter' => '5'],
'1.1.13' => ['to' => 'latest', 'formatter' => '5'],
'1.1.12' => ['to' => 'latest', 'formatter' => '5'],
'1.1.11' => ['to' => 'latest', 'formatter' => '5'],
'1.1.10' => ['to' => 'latest', 'formatter' => '5'],
'1.1.9' => ['to' => 'latest', 'formatter' => '5'],
'1.1.8' => ['to' => 'latest', 'formatter' => '5'],
'1.1.7' => ['to' => 'latest', 'formatter' => '4'],
'1.1.6' => ['to' => 'latest', 'formatter' => '4'],
'1.1.5' => ['to' => 'latest', 'formatter' => '4'],
'1.1.4' => ['to' => 'latest', 'formatter' => '4'],
'1.1.3' => ['to' => 'latest', 'formatter' => '4'],
'1.1.2' => ['to' => 'latest', 'formatter' => '4'],
'1.1.1' => ['to' => 'latest', 'formatter' => '3'],
'1.1.0' => ['to' => 'latest', 'formatter' => '3'],
'1.0.32' => ['to' => 'latest', 'formatter' => '3'],
'1.0.31' => ['to' => 'latest', 'formatter' => '3'],
'1.0.30' => ['to' => 'latest', 'formatter' => '3'],
'1.0.29' => ['to' => 'latest', 'formatter' => '3'],
'1.0.28' => ['to' => 'latest', 'formatter' => '3'],
'1.0.27' => ['to' => 'latest', 'formatter' => '3'],
'1.0.26' => ['to' => 'latest', 'formatter' => '3'],
'1.0.25' => ['to' => 'latest', 'formatter' => '3'],
'1.0.24' => ['to' => 'latest', 'formatter' => '3'],
'1.0.23' => ['to' => 'latest', 'formatter' => '3'],
'1.0.22' => ['to' => 'latest', 'formatter' => '2'],
'1.0.21' => ['to' => 'latest', 'formatter' => '2'],
'1.0.20' => ['to' => 'latest', 'formatter' => '2'],
'1.1.21' => ['to' => 'latest', 'formatter' => '5'],
'1.1.20' => ['to' => 'latest', 'formatter' => '5'],
'1.1.19' => ['to' => '1.1.21', 'formatter' => '5'],
'1.1.18' => ['to' => '1.1.21', 'formatter' => '5'],
'1.1.17' => ['to' => '1.1.21', 'formatter' => '5'],
'1.1.16' => ['to' => '1.1.21', 'formatter' => '5'],
'1.1.15' => ['to' => '1.1.21', 'formatter' => '5'],
'1.1.14' => ['to' => '1.1.21', 'formatter' => '5'],
'1.1.13' => ['to' => '1.1.21', 'formatter' => '5'],
'1.1.12' => ['to' => '1.1.21', 'formatter' => '5'],
'1.1.11' => ['to' => '1.1.21', 'formatter' => '5'],
'1.1.10' => ['to' => '1.1.21', 'formatter' => '5'],
'1.1.9' => ['to' => '1.1.21', 'formatter' => '5'],
'1.1.8' => ['to' => '1.1.21', 'formatter' => '5'],
'1.1.7' => ['to' => '1.1.21', 'formatter' => '4'],
'1.1.6' => ['to' => '1.1.21', 'formatter' => '4'],
'1.1.5' => ['to' => '1.1.21', 'formatter' => '4'],
'1.1.4' => ['to' => '1.1.21', 'formatter' => '4'],
'1.1.3' => ['to' => '1.1.21', 'formatter' => '4'],
'1.1.2' => ['to' => '1.1.21', 'formatter' => '4'],
'1.1.1' => ['to' => '1.1.21', 'formatter' => '3'],
'1.1.0' => ['to' => '1.1.21', 'formatter' => '3'],
'1.0.32' => ['to' => '1.1.21', 'formatter' => '3'],
'1.0.31' => ['to' => '1.1.21', 'formatter' => '3'],
'1.0.30' => ['to' => '1.1.21', 'formatter' => '3'],
'1.0.29' => ['to' => '1.1.21', 'formatter' => '3'],
'1.0.28' => ['to' => '1.1.21', 'formatter' => '3'],
'1.0.27' => ['to' => '1.1.21', 'formatter' => '3'],
'1.0.26' => ['to' => '1.1.21', 'formatter' => '3'],
'1.0.25' => ['to' => '1.1.21', 'formatter' => '3'],
'1.0.24' => ['to' => '1.1.21', 'formatter' => '3'],
'1.0.23' => ['to' => '1.1.21', 'formatter' => '3'],
'1.0.22' => ['to' => '1.1.21', 'formatter' => '2'],
'1.0.21' => ['to' => '1.1.21', 'formatter' => '2'],
'1.0.20' => ['to' => '1.1.21', 'formatter' => '2'],
// 1.0.19 was never actually released, so no need to represent it
'1.0.18' => ['to' => 'latest', 'formatter' => '2'],
'1.0.17' => ['to' => 'latest', 'formatter' => '2'],
'1.0.16' => ['to' => 'latest', 'formatter' => '2'],
'1.0.15' => ['to' => 'latest', 'formatter' => '2'],
'1.0.14' => ['to' => 'latest', 'formatter' => '2'],
'1.0.13' => ['to' => 'latest', 'formatter' => '1'],
'1.0.12' => ['to' => 'latest', 'formatter' => '1'],
'1.0.18' => ['to' => '1.1.21', 'formatter' => '2'],
'1.0.17' => ['to' => '1.1.21', 'formatter' => '2'],
'1.0.16' => ['to' => '1.1.21', 'formatter' => '2'],
'1.0.15' => ['to' => '1.1.21', 'formatter' => '2'],
'1.0.14' => ['to' => '1.1.21', 'formatter' => '2'],
'1.0.13' => ['to' => '1.1.21', 'formatter' => '1'],
'1.0.12' => ['to' => '1.1.21', 'formatter' => '1'],
];

$response_formatters = [
Expand Down

0 comments on commit eea3ac1

Please sign in to comment.