Skip to content

Commit a6526f4

Browse files
committed
Push Mac version to Steam as well
1 parent 732e134 commit a6526f4

File tree

4 files changed

+43
-7
lines changed

4 files changed

+43
-7
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ jobs:
891891

892892
publish_steam:
893893
name: Publish Steam Release
894-
needs: [configuration, build]
894+
needs: [build, signmacos]
895895
if: |
896896
github.event_name == 'push' &&
897897
github.repository == 'icosa-foundation/open-brush' &&
@@ -917,19 +917,29 @@ jobs:
917917
with:
918918
name: Windows OpenXR
919919
path: build_windows_openxr
920+
- name: Download Build Artifacts (MacOS Monoscopic Signed)
921+
uses: actions/download-artifact@v4
922+
with:
923+
name: MacOS Monoscopic (signed)
924+
path: build_macos_monoscopic
920925
- name: Upload Build
921926
run: |
927+
cd build_macos_monoscopic
928+
tar xvfz OpenBrush.tgz
929+
cd -
922930
pip install -U jinjanator
923-
jinjanate Support/steam/app.vdf.j2 > build_windows_openxr/app.vdf
924-
jinjanate Support/steam/main_depot.vdf.j2 > build_windows_openxr/main_depot.vdf
931+
jinjanate Support/steam/app.vdf.j2 > app.vdf
932+
jinjanate Support/steam/main_depot.win.vdf.j2 > build_windows_openxr/main_depot.vdf
933+
jinjanate Support/steam/main_depot.mac.vdf.j2 > build_macos_monoscopic/main_depot.vdf
925934
jinjanate Support/steam/installscript_win.vdf.j2 > build_windows_openxr/installscript_win.vdf
926-
steamcmd +login $STEAM_USERNAME +run_app_build $(pwd)/build_windows_openxr/app.vdf +quit
935+
steamcmd +login $STEAM_USERNAME +run_app_build $(pwd)/app.vdf +quit
927936
env:
928937
STEAM_USERNAME: ${{ vars.STEAM_USERNAME }}
929938
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}
930939
VERSION: ${{ needs.configuration.outputs.version }}
931940
OPEN_BRUSH_APP_ID: ${{ vars.STEAM_APP_ID }}
932941
OPEN_BRUSH_WINDOWS_DEPOT_ID: ${{ vars.STEAM_WINDOWS_DEPOT_ID }}
942+
OPEN_BRUSH_MAC_DEPOT_ID: ${{ vars.STEAM_MAC_DEPOT_ID }}
933943
OPEN_BRUSH_EXECUTABLE: ${{ needs.configuration.outputs.basename}}.exe
934944
CHANNEL: beta
935945
- name: Update steam login secret

Support/steam/app.vdf.j2

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
{
33
"appid" "{{ OPEN_BRUSH_APP_ID }}"
44
"Desc" "{{ VERSION }}"
5-
"buildoutput" "../build_output/{{ CHANNEL }}" // Path for steamcmd logs
5+
"buildoutput" "build_output/{{ CHANNEL }}" // Path for steamcmd logs
66
"contentroot" "." // This file will be copied into the root of the release
77
"setlive" "{{ CHANNEL }}"
88
"preview" "0" // For local testing, set this to 1
99
"local" "" // Not relevant; this is for a custom CDN
1010
"depots"
1111
{
12-
"{{ OPEN_BRUSH_WINDOWS_DEPOT_ID }}" main_depot.vdf
12+
"{{ OPEN_BRUSH_WINDOWS_DEPOT_ID }}" build_windows_openxr/main_depot.vdf
13+
"{{ OPEN_BRUSH_MAC_DEPOT_ID }}" build_macos_monoscopic/main_depot.vdf
1314
}
1415
}

Support/steam/main_depot.mac.vdf.j2

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
"DepotBuildConfig"
2+
{
3+
// # Set your assigned depot ID here
4+
"DepotID" "{{ OPEN_BRUSH_MAC_DEPOT_ID }}"
5+
6+
"ContentRoot" "build_macos_monoscopic/StandaloneOSX"
7+
8+
"FileMapping"
9+
{
10+
// Include all files in the build output directory (ContentRoot)
11+
"LocalPath" "*"
12+
13+
// Destination is the main install directory
14+
"DepotPath" "."
15+
16+
// If LocalPath contains wildcards, setting this means that all
17+
// matching files within subdirectories of LocalPath will also
18+
// be included.
19+
"recursive" "1"
20+
}
21+
22+
// but exclude all symbol files
23+
"FileExclusion" "*.pdb"
24+
"FileExclusion" "build_log.txt"
25+
}

Support/steam/main_depot.vdf.j2 renamed to Support/steam/main_depot.win.vdf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// # Set your assigned depot ID here
44
"DepotID" "{{ OPEN_BRUSH_WINDOWS_DEPOT_ID }}"
55

6-
"ContentRoot" "StandaloneWindows64"
6+
"ContentRoot" "build_windows_openxr/StandaloneWindows64"
77

88
"FileMapping"
99
{

0 commit comments

Comments
 (0)