Skip to content

Commit 5957a55

Browse files
authored
Add Text displaying if the user is running an Experimental Version of CodenameEngine (#933)
* cmon github actions, do something * this will make it easier to know if a user is running an experimental version :trollface:
1 parent 3266e22 commit 5957a55

4 files changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
haxe -cp commandline -D analyzer-optimize --run Main setup -s
3636
- name: Building the game
3737
run: |
38-
haxelib run lime build linux
38+
haxelib run lime build linux -DCOMPILE_EXPERIMENTAL
3939
# - name: Tar files
4040
# run: tar -zcvf CodenameEngine.tar.gz -C export/release/linux/bin .
4141
- name: Uploading artifact (executable)

.github/workflows/macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
haxe -cp commandline -D analyzer-optimize --run Main setup -s
3333
- name: Building the game
3434
run: |
35-
arch -x86_64 haxelib run lime build mac
35+
arch -x86_64 haxelib run lime build mac -DCOMPILE_EXPERIMENTAL
3636
- name: Tar files
3737
run: tar -zcvf CodenameEngine.tar.gz -C export/release/macos/bin .
3838
- name: Uploading artifact (executable)

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
haxe -cp commandline -D analyzer-optimize --run Main setup -s --no-vscheck
3333
- name: Building the game
3434
run: |
35-
haxelib run lime build windows
35+
haxelib run lime build windows -DCOMPILE_EXPERIMENTAL
3636
- name: Uploading artifact (executable)
3737
uses: actions/upload-artifact@v4
3838
with:

source/funkin/backend/system/framerate/CodenameBuildField.hx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,13 @@ class CodenameBuildField extends TextField {
1313
}
1414

1515
public function reload() {
16+
#if COMPILE_EXPERIMENTAL
17+
text = '${Flags.VERSION_MESSAGE} (Experimental Build)';
18+
#else
1619
text = '${Flags.VERSION_MESSAGE}';
17-
#if debug
20+
#end
21+
22+
#if (debug || COMPILE_EXPERIMENTAL)
1823
text += '\n${Flags.COMMIT_MESSAGE}';
1924
#end
2025
}

0 commit comments

Comments
 (0)