Skip to content

Commit 4794f1c

Browse files
committed
fix: update domains
this still needs some serverside configuration to get goin again
1 parent 248fb9b commit 4794f1c

4 files changed

Lines changed: 14 additions & 10 deletions

File tree

.github/workflows/CD.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
name: sar-linux
3434
path: sar.so
3535
if-no-files-found: error
36-
- name: Upload to dl.sar.portal2.sr
36+
- name: Upload to sardl.portal2.sr
3737
if: github.repository_owner == 'p2sr'
3838
env:
3939
DL_SAR_API_TOKEN: ${{ secrets.DL_SAR_API_TOKEN }}
@@ -50,7 +50,7 @@ jobs:
5050
-F "count=1" \
5151
-F "hashes[0]=$(sha256sum sar.so | cut -d ' ' -f 1)" \
5252
-F "files[0]=@sar.so" \
53-
"https://dl.sar.portal2.jonesy.moe/api/v1/upload"
53+
"https://sardl.portal2.sr/api/v1/upload"
5454
build-win:
5555
name: Windows Build
5656
runs-on: windows-2022
@@ -82,7 +82,7 @@ jobs:
8282
name: sar-windows-pdb
8383
path: bin\sar.pdb
8484
if-no-files-found: error
85-
- name: Upload to dl.sar.portal2.sr
85+
- name: Upload to sardl.portal2.sr
8686
if: github.repository_owner == 'p2sr'
8787
shell: bash
8888
env:
@@ -102,7 +102,7 @@ jobs:
102102
-F "hashes[1]=$(sha256sum bin/sar.pdb | cut -d ' ' -f 1)" \
103103
-F "files[0]=@bin/sar.dll" \
104104
-F "files[1]=@bin/sar.pdb" \
105-
"https://dl.sar.portal2.jonesy.moe/api/v1/upload"
105+
"https://sardl.portal2.sr/api/v1/upload"
106106
release:
107107
name: Release
108108
if: github.repository == 'p2sr/SourceAutoRecord'

.github/workflows/CI.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
name: sar-linux
4747
path: sar.so
4848
if-no-files-found: error
49-
- name: Upload to dl.sar.portal2.sr
49+
- name: Upload to sardl.portal2.sr
5050
if: github.ref == 'refs/heads/master' && github.repository_owner == 'p2sr'
5151
env:
5252
DL_SAR_API_TOKEN: ${{ secrets.DL_SAR_API_TOKEN }}
@@ -63,7 +63,7 @@ jobs:
6363
-F "count=1" \
6464
-F "hashes[0]=$(sha256sum sar.so | cut -d ' ' -f 1)" \
6565
-F "files[0]=@sar.so" \
66-
"https://dl.sar.portal2.jonesy.moe/api/v1/upload"
66+
"https://sardl.portal2.sr/api/v1/upload"
6767
6868
build-win:
6969
name: Windows Build
@@ -91,7 +91,7 @@ jobs:
9191
bin\sar.dll
9292
bin\sar.pdb
9393
if-no-files-found: error
94-
- name: Upload to dl.sar.portal2.sr
94+
- name: Upload to sardl.portal2.sr
9595
if: github.ref == 'refs/heads/master' && github.repository_owner == 'p2sr'
9696
shell: bash
9797
env:
@@ -111,4 +111,4 @@ jobs:
111111
-F "hashes[1]=$(sha256sum bin/sar.pdb | cut -d ' ' -f 1)" \
112112
-F "files[0]=@bin/sar.dll" \
113113
-F "files[1]=@bin/sar.pdb" \
114-
"https://dl.sar.portal2.jonesy.moe/api/v1/upload"
114+
"https://sardl.portal2.sr/api/v1/upload"

src/Features/AutoSubmit.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,11 @@ void AutoSubmit::LoadApiKey(bool output_nonexist) {
438438
while (!f.eof()) {
439439
std::getline(f, base) && std::getline(f, key);
440440
if (sar.game->Is(SourceGame_Portal2) && base == "board.portal2.sr") break;
441-
if (sar.game->Is(SourceGame_PortalStoriesMel) && base == "mel.board.portal2.sr") break;
441+
if (sar.game->Is(SourceGame_PortalStoriesMel) && base == "melboard.portal2.sr") break;
442+
if (sar.game->Is(SourceGame_PortalStoriesMel) && base == "mel.board.portal2.sr") {
443+
base = "melboard.portal2.sr";
444+
break;
445+
}
442446
/* if we got here, no valid key */
443447
base.clear();
444448
key.clear();

src/Features/Updater.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct SarVersion {
3838
bool canary;
3939
};
4040

41-
#define DL_SAR_HOST "https://dl.sar.portal2.sr"
41+
#define DL_SAR_HOST "https://sardl.portal2.sr"
4242

4343
static std::optional<SarVersion> getVersionComponents(const char *str) {
4444
SarVersion v = {0, 0, false};

0 commit comments

Comments
 (0)