Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SeaMonkey Website
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
This instance will be upgraded to Heptapod 17.9.2 on 2025-04-24 between 17:00 and 18:00 UTC+2
Show more breadcrumbs
SeaMonkey
SeaMonkey Website
Commits
61a5282c
Commit
61a5282c
authored
5 years ago
by
Ian Neal
Browse files
Options
Downloads
Patches
Plain Diff
Bug 1564637 - Extend release template to understand 64-bit windows and linux downloads r=frg
parent
50e9d2d3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/release.tmpl
+8
-0
8 additions, 0 deletions
lib/release.tmpl
src/download.jst
+15
-25
15 additions, 25 deletions
src/download.jst
with
23 additions
and
25 deletions
lib/release.tmpl
+
8
−
0
View file @
61a5282c
...
...
@@ -28,7 +28,9 @@
longversion = smversion|replace('a','%20Alpha%20')|replace('b','%20Beta%20')|replace('rc','%20RC%20');
IF platform == "win";
"$ftpdir/win32/$locale/SeaMonkey%20Setup%20${longversion}.exe";
ELSIF platform == "win64";
"$ftpdir/win64/$locale/SeaMonkey%20Setup%20${longversion}.exe";
ELSIF platform == "osx";
"$ftpdir/mac/$locale/SeaMonkey%20${longversion}.dmg";
ELSIF platform == "linux";
"$ftpdir/linux-i686/$locale/seamonkey-${smversion}.tar.bz2";
...
...
@@ -31,10 +33,12 @@
ELSIF platform == "osx";
"$ftpdir/mac/$locale/SeaMonkey%20${longversion}.dmg";
ELSIF platform == "linux";
"$ftpdir/linux-i686/$locale/seamonkey-${smversion}.tar.bz2";
ELSIF platform == "linux64";
"$ftpdir/linux-x86_64/$locale/seamonkey-${smversion}.tar.bz2";
ELSE;
"$ftpdir/$platform/$locale/";
END;
ELSE;
IF platform == "win";
"$ftpdir/win32/$locale/SeaMonkey%20Setup%20${smversion}.exe";
...
...
@@ -35,10 +39,12 @@
ELSE;
"$ftpdir/$platform/$locale/";
END;
ELSE;
IF platform == "win";
"$ftpdir/win32/$locale/SeaMonkey%20Setup%20${smversion}.exe";
ELSIF platform == "win64";
"$ftpdir/win64/$locale/SeaMonkey%20Setup%20${smversion}.exe";
ELSIF platform == "osx";
"$ftpdir/mac/$locale/SeaMonkey%20${smversion}.dmg";
ELSIF platform == "linux";
"$ftpdir/linux-i686/$locale/seamonkey-${smversion}.tar.bz2";
...
...
@@ -41,7 +47,9 @@
ELSIF platform == "osx";
"$ftpdir/mac/$locale/SeaMonkey%20${smversion}.dmg";
ELSIF platform == "linux";
"$ftpdir/linux-i686/$locale/seamonkey-${smversion}.tar.bz2";
ELSIF platform == "linux64";
"$ftpdir/linux-x86_64/$locale/seamonkey-${smversion}.tar.bz2";
ELSE;
"$ftpdir/$platform/$locale/";
END;
...
...
This diff is collapsed.
Click to expand it.
src/download.jst
+
15
−
25
View file @
61a5282c
[%- wrap = false -%]
var gPlatform = PLATFORM_WINDOWS;
var PLATFORM_OTHER = 0;
var PLATFORM_WINDOWS = 1;
var PLATFORM_LINUX = 2;
var PLATFORM_MACOSX = 3;
var PLATFORM_MAC = 4;
var gPlatform = "";
...
...
@@ -9,18 +3,14 @@
if (navigator.platform.indexOf("Win32") != -1)
gPlatform = PLATFORM_WINDOWS;
else if (navigator.platform.indexOf("Win64") != -1)
gPlatform = PLATFORM_WINDOWS;
else if (navigator.platform.indexOf("Linux") != -1)
gPlatform = PLATFORM_LINUX;
else if (navigator.userAgent.indexOf("Mac OS X") != -1)
gPlatform = PLATFORM_MACOSX;
else if (navigator.userAgent.indexOf("MSIE 5.2") != -1)
gPlatform = PLATFORM_MACOSX;
else if (navigator.platform.indexOf("Mac") != -1)
gPlatform = PLATFORM_MAC;
else
gPlatform = PLATFORM_OTHER;
if (navigator.platform.includes("Win32"))
gPlatform = "win";
else if (navigator.platform.includes("Win64"))
gPlatform = "win64";
else if (navigator.platform.includes("Linux i"))
gPlatform = "linux";
else if (navigator.platform.includes("Linux x"))
gPlatform = "linux64";
else if (navigator.platform.includes("MacIntel"))
gPlatform = "osx";
// "" for a version means it should be "Not Yet Available" on all.html,
// null means it should not be listed
...
...
@@ -93,7 +83,7 @@
function buildValidForPlatform(aLangID, aPlatform)
{
if ((aLangID.abCD == "gu-IN" || aLangID.abCD == "pa-IN") &&
aPlatform ==
PLATFORM_MACOSX
)
aPlatform ==
"osx"
)
return false;
return true;
...
...
@@ -176,8 +166,8 @@
function highlightDownload(aIdBase, betaversion)
{
if (gPlatform ==
PLATFORM_WINDOWS
) {
if (gPlatform ==
"win" || gPlatform == "win64"
) {
document.getElementById(aIdBase + "-win").className = "main";
document.getElementById(aIdBase + "-linux").style.display = "none";
document.getElementById(aIdBase + "-mac").style.display = "none";
}
...
...
@@ -180,9 +170,9 @@
document.getElementById(aIdBase + "-win").className = "main";
document.getElementById(aIdBase + "-linux").style.display = "none";
document.getElementById(aIdBase + "-mac").style.display = "none";
}
else if (gPlatform ==
PLATFORM_LINUX
) {
else if (gPlatform ==
"linux" || gPlatform == "linux64"
) {
document.getElementById(aIdBase + "-win").style.display = "none";
document.getElementById(aIdBase + "-linux").className = "main";
document.getElementById(aIdBase + "-mac").style.display = "none";
}
...
...
@@ -185,8 +175,8 @@
document.getElementById(aIdBase + "-win").style.display = "none";
document.getElementById(aIdBase + "-linux").className = "main";
document.getElementById(aIdBase + "-mac").style.display = "none";
}
else if (gPlatform ==
PLATFORM_MACOSX
) {
else if (gPlatform ==
"osx"
) {
document.getElementById(aIdBase + "-win").style.display = "none";
document.getElementById(aIdBase + "-linux").style.display = "none";
document.getElementById(aIdBase + "-mac").className = "main";
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment