Skip to content

Commit 3c25c1d

Browse files
committed
temp changes for steam:
disable update / install check force mod id to 15 without any of the other side effects like the alternate update server disable most builds I don't care about use alternate secrets so that it doesn't conflict with "modtest" disable shared data directory
1 parent e371d63 commit 3c25c1d

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

.github/build.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ meson_configure+=$'\t'-Dapp_data=$APP_DATA
201201
meson_configure+=$'\t'-Dapp_vendor=$APP_VENDOR
202202
meson_configure+=$'\t'-Dstrip=false
203203
meson_configure+=$'\t'-Db_staticpic=false
204-
meson_configure+=$'\t'-Dmod_id=$MOD_ID
204+
meson_configure+=$'\t'-Dmod_id=15
205+
meson_configure+=$'\t'-Dignore_updates=true
205206
case $BSH_HOST_ARCH-$BSH_HOST_PLATFORM-$BSH_HOST_LIBC-$BSH_DEBUG_RELEASE in
206207
x86_64-linux-gnu-debug) ;&
207208
x86_64-windows-mingw-debug) ;&

.github/prepare.py

+3
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ def set_output(key, value):
141141
]:
142142
if priority < do_priority:
143143
continue
144+
# Skip unimportant builds for Steam
145+
if not publish:
146+
continue
144147
job_name = f'build'
145148
if starcatcher:
146149
job_name += f'+target=starcatcher-{starcatcher}'

.github/workflows/build.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- id: prepare
4040
run: python ./.github/prepare.py
4141
env:
42-
PUBLISH_HOSTPORT: ${{ secrets.STARCATCHER_PUBLISH_HOSTPORT }}
42+
PUBLISH_HOSTPORT: ${{ secrets.STARCATCHER_PUBLISH_HOSTPORT_STEAM }}
4343
GITHUB_REF: ${{ github.ref }}
4444
- if: steps.prepare.outputs.do_release == 'yes'
4545
id: create_release
@@ -155,10 +155,10 @@ jobs:
155155
- run: mv ${{ matrix.asset_path }} ${{ matrix.starcatcher_name }}
156156
- run: sudo apt update && sudo apt install curlftpfs && bash -c './.github/starcatcher-publish.sh'
157157
env:
158-
PUBLISH_HOSTPORT: ${{ secrets.STARCATCHER_PUBLISH_HOSTPORT }}
159-
PUBLISH_USERNAME: ${{ secrets.STARCATCHER_PUBLISH_USERNAME }}
160-
PUBLISH_PASSWORD: ${{ secrets.STARCATCHER_PUBLISH_PASSWORD }}
161-
PUBLISH_DIRECTORY: ${{ secrets.STARCATCHER_PUBLISH_DIRECTORY }}
158+
PUBLISH_HOSTPORT: ${{ secrets.STARCATCHER_PUBLISH_HOSTPORT_STEAM }}
159+
PUBLISH_USERNAME: ${{ secrets.STARCATCHER_PUBLISH_USERNAME_STEAM }}
160+
PUBLISH_PASSWORD: ${{ secrets.STARCATCHER_PUBLISH_PASSWORD_STEAM }}
161+
PUBLISH_DIRECTORY: ${{ secrets.STARCATCHER_PUBLISH_DIRECTORY_STEAM }}
162162
PUBLISH_FILENAME: ${{ matrix.starcatcher_name }}
163163
release:
164164
runs-on: ubuntu-latest

src/PowderToy.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ int Main(int argc, char *argv[])
321321
else
322322
perror("failed to chdir to requested ddir");
323323
}
324-
else
324+
/*else
325325
{
326326
auto ddir = Platform::DefaultDdir();
327327
if (!Platform::FileExists("powder.pref"))
@@ -340,7 +340,7 @@ int Main(int argc, char *argv[])
340340
{
341341
Platform::sharedCwd = ddir;
342342
}
343-
}
343+
}*/
344344
// We're now in the correct directory, time to get prefs.
345345
explicitSingletons->globalPrefs = std::make_unique<GlobalPrefs>();
346346

src/common/platform/meson.build

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ conf_data.set('USE_BLUESCREEN', use_bluescreen.to_string())
9696

9797
can_install = get_option('can_install')
9898
if can_install == 'auto'
99-
can_install = 'yes_check'
99+
can_install = 'yes'
100100
if is_debug
101101
can_install = 'yes'
102102
endif

0 commit comments

Comments
 (0)