Skip to content

Commit

Permalink
updated DL_URL strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
humbletim committed Oct 24, 2024
1 parent 8b89e49 commit 0628834
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
1 change: 1 addition & 0 deletions blueprints/fs-7.1.11/000.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ maybe-clone viewer ${hub:-github.com} $repo "$ref"
maybe-clone p373r github.com ${GITHUB_REPOSITORY} P373R_6.6.8
pushd repo/viewer
patch -p1 < $nunja_dir/../fs-7.1.11/installer_template.nsi.patch
patch -p1 < $nunja_dir/../fs-7.1.11/viewer_manifest.DL_URL.patch
git diff
popd
16 changes: 2 additions & 14 deletions blueprints/fs-7.1.11/installer_template.nsi.patch
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ index 29ae1e54f05..a21e6c26661 100644
+ ${WordReplace} "$(MissingAVX2)" "%DLURL%" "${DL_URL}-legacy-cpus" "+*" $3
MessageBox MB_OK "$3"
- ${OpenURL} '$2'
+ ${OpenURL} "${DL_URL}-legacy-cpus#version-${VERSION_LONG}"
+ ${OpenURL} "${DL_URL}-legacy-cpus"
Quit

OK_AVX2:
Expand All @@ -19,19 +19,7 @@ index 29ae1e54f05..a21e6c26661 100644
MessageBox MB_YESNO $3 IDYES DownloadAVX2 IDNO ContinueInstall
DownloadAVX2:
- ${OpenURL} '$3'
+ ${OpenURL} "${DL_URL}#version-${VERSION_LONG}"
+ ${OpenURL} "${DL_URL}"
Quit
ContinueInstall:
Pop $3
diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py
index 9fa11fd534c..0dcc76d3ab3 100755
--- a/indra/newview/viewer_manifest.py
+++ b/indra/newview/viewer_manifest.py
@@ -939,6 +939,7 @@ class Windows_x86_64_Manifest(ViewerManifest):
return result
# </FS:Ansariel>
def dl_url_from_channel(self):
+ return "https://github.com/humbletim/firestorm-gha/wiki/downloads"
if self.channel_type() == 'release':
return 'https://www.firestormviewer.org/choose-your-platform'
elif self.channel_type() == 'beta':
12 changes: 12 additions & 0 deletions blueprints/fs-7.1.11/viewer_manifest.DL_URL.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py
index 9fa11fd534c..0dcc76d3ab3 100755
--- a/indra/newview/viewer_manifest.py
+++ b/indra/newview/viewer_manifest.py
@@ -939,6 +939,7 @@ class Windows_x86_64_Manifest(ViewerManifest):
return result
# </FS:Ansariel>
def dl_url_from_channel(self):
+ return str.format('https://github.com/humbletim/firestorm-gha/releases/#v{}', os.getenv('version_xyz'))
if self.channel_type() == 'release':
return 'https://www.firestormviewer.org/choose-your-platform'
elif self.channel_type() == 'beta':
1 change: 1 addition & 0 deletions blueprints/sgeo-7.1.11/000.bash
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ popd

pushd repo/viewer
patch -p1 < $nunja_dir/../fs-7.1.11/installer_template.nsi.patch
patch -p1 < $nunja_dir/../fs-7.1.11/viewer_manifest.DL_URL.patch
git diff
popd

0 comments on commit 0628834

Please sign in to comment.