-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcustomLinks.js
133 lines (102 loc) · 7.34 KB
/
customLinks.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
//Varaibles
/* version number: changing this number
will update all version centric variables */
var versionnum = "2.5.0"
var versiondate = "2022-11-26"
//var versionnum = "2.4.4"
//var versiondate = "2022-11-15"
//var versionnum = "2.4.3"
//var versiondate = "2022-02-19"
//previous version link
var preversion = "https://sourceforge.net/projects/natron/files/"
// Git hub Main Repo Page Link
var mainRepoLink = "https://github.com/NatronGitHub/Natron";
// Community plugin links
var communityplug = "https://github.com/NatronGitHub/natron-plugins";
var communityscripting = "https://github.com/NatronGitHub/natron-python-scripting";
// Social Links
var forumLink = "https://discuss.pixls.us/c/software/natron";
var fblink = "https://www.facebook.com/groups/NatronNation";
var twitterlink = "https://twitter.com/natronvfx";
var googleLink = "https://plus.google.com/u/0/communities/116548935195599437911";
// Documentation links
var docuLink = "http://natron.readthedocs.io";
var docuGitLink = "https://github.com/NatronGitHub/Natron/wiki";
//////version centric variables:changelog and download etc. START////
///NO NEED TO TOUCH USUALLY AS IT WORKS WITH VERSION NUMBER/////
var chnglognum = "https://github.com/NatronGitHub/Natron/blob/v"+versionnum+"/CHANGELOG.md"
// Windows Downlaod Variables Start
//var winDld = "https://downloads.natron.fr/Windows/releases/64bit/files/Natron-"+versionnum+"-Windows-x86_64bit-setup.exe"
var winDld = "https://github.com/NatronGitHub/Natron/releases/download/v"+versionnum+"/Natron-"+versionnum+"-Windows-x86_64.zip"
//var winOnlineDld = "https://downloads.natron.fr/Windows/releases/64bit/files/Natron-Windows-x86_64bit-online-release-setup.exe"
//var winPortableDld = "https://downloads.natron.fr/Windows/releases/64bit/files/Natron-"+versionnum+"-Windows-x86_64bit-no-installer.zip"
//var winPortableDld = "https://github.com/NatronGitHub/Natron/releases/download/v"+versionnum+"/Natron-"+versionnum+"-Windows-64-no-installer.zip"
// Windows Download Variables end
// Mac Downlaod Variables start
//var macDld = "https://downloads.natron.fr/Mac/releases/Natron-"+versionnum+".dmg"
var macMontereyDld = "https://github.com/NatronGitHub/Natron/releases/download/v"+versionnum+"/Natron-"+versionnum+"-macOS12-x86_64.dmg"
var macCatalinaDld = "https://github.com/NatronGitHub/Natron/releases/download/v"+versionnum+"/Natron-"+versionnum+"-macOS1015-x86_64.dmg"
var macDld = "https://github.com/NatronGitHub/Natron/releases/download/v"+versionnum+"/Natron-"+versionnum+"-OSX109-x86_64.dmg"
var macUniversalDld = "https://github.com/NatronGitHub/Natron/releases/download/v"+versionnum+"/Natron-"+versionnum+"-MacOSX106-Universal-i386-x86_64.dmg"
// Mac Downlaod Variables end
// linux Download Variables Start
//var linDld = "https://downloads.natron.fr/Linux/releases/64bit/files/Natron-"+versionnum+"-Linux-x86_64bit.tgz"
var linDld = "https://github.com/NatronGitHub/Natron/releases/download/v"+versionnum+"/Natron-"+versionnum+"-Linux-x86_64.tgz"
//var linOnlineDld = "https://downloads.natron.fr/Linux/releases/64bit/files/Natron-Linux-x86_64bit-online-install-release.tgz"
//var linPortableDld = "https://downloads.natron.fr/Linux/releases/64bit/files/Natron-"+versionnum+"-Linux-x86_64bit-portable.tar.xz"
var linPortableDld = "https://github.com/NatronGitHub/Natron/releases/download/v"+versionnum+"/Natron-"+versionnum+"-Linux-x86_64-no-installer.tar.xz"
//var linRpmDld = "https://downloads.natron.fr/Linux/releases/64bit/files/Natron-"+versionnum+".x86_64.rpm"
//var linDbnDld = "https://downloads.natron.fr/Linux/releases/64bit/files/natron_"+versionnum+"_amd64.deb"
// Linux Download Variables end
///NO NEED TO TOUCH USUALLY AS IT WORKS WITH VERSION NUMBER/////
//////version centric variables:changelog and download etc. END/////
/*#######DANGER ZONE. EDIT ONLY IF NECESSARY#######
Each links should pass with an "UNIQUE_ID". You can use above variables in new created link
or create new varaibles like above. For example see: "communityplug" ID below
/######DANGER ZONE. EDIT ONLY IF NECESSARY########*/
//version formatting
document.getElementById("versionnum").innerHTML= "Current Version "+versionnum+" (" +versiondate+ ") ";
// version centric links establised by ID
document.getElementById("chnglognum").href= chnglognum; //changelog
document.getElementById("preversion").href= preversion; //previous version
//windows downloads start//
document.getElementById("winDld").href= winDld;
document.getElementById("winDld").innerHTML= "Download Natron "+versionnum+ " for Windows 8.1/10/11 (64-bit) "+'<i class="fa fa-windows"></i>';
//document.getElementById("winOnlineDld").href= winOnlineDld;
//document.getElementById("winPortableDld").href= winPortableDld;
//windows downloads end//
//Mac downloads start//
document.getElementById("macMontereyDld").href= macMontereyDld;
document.getElementById("macMontereyDld").innerHTML= "Download Natron "+versionnum+ " for macOS 12+ dmg (Intel 64-bit, runs on Apple silicon with Rosetta 2) "+'<i class="fa fa-apple"></i>';
document.getElementById("macCatalinaDld").href= macCatalinaDld;
document.getElementById("macCatalinaDld").innerHTML= "Download Natron "+versionnum+ " for macOS 10.15+ dmg (Intel 64-bit, runs on Apple silicon with Rosetta 2) "+'<i class="fa fa-apple"></i>';
document.getElementById("macDld").href= macDld;
document.getElementById("macDld").innerHTML= "Download Natron "+versionnum+ " for OS X 10.9+ dmg (Intel 64-bit) "+'<i class="fa fa-apple"></i>';
document.getElementById("macUniversalDld").href= macUniversalDld;
document.getElementById("macUniversalDld").innerHTML= "Download Natron "+versionnum+ " for OS X 10.6+ dmg (Intel 32/64-bit) "+'<i class="fa fa-apple"></i>';
//Mac downloads end//
//Linux downloads start//
document.getElementById("linDld").href= linDld;
document.getElementById("linDld").innerHTML= "Download Natron "+versionnum+ " installer "+'<i class="fa fa-linux"></i>';
//document.getElementById("linOnlineDld").href= linOnlineDld;
document.getElementById("linPortableDld").href= linPortableDld;
//document.getElementById("linRpmDld").href= linRpmDld;
//document.getElementById("linDbnDld").href= linDbnDld;
//Linux downloads end//
// Repo links established by ID
document.getElementById("mainRepoLink").href= mainRepoLink;
document.getElementById("communityplug").href = communityplug;
document.getElementById("communityplug2").href = communityplug;
document.getElementById("communityplug3").href = communityplug;
document.getElementById("communityscript1").href = communityscripting;
document.getElementById("communityscript2").href = communityscripting;
// Social links established by ID
document.getElementById("forumLink").href = forumLink;
document.getElementById("fblink").href = fblink;
document.getElementById("fblink").innerHTML = '<i class="fa fa-facebook"></i>';
document.getElementById("twitterlink").href = twitterlink;
document.getElementById("twitterlink").innerHTML = '<i class="fa fa-twitter"></i>';
//document.getElementById("googleLink").href = googleLink;
//document.getElementById("googleLink").innerHTML = '<i class="fa fa-google"></i>';
document.getElementById("docuLink").href = docuLink;
document.getElementById("docuGitLink").href = docuGitLink;