mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
Update build information (#31)
* Update date format and add date to filename output Date is now displayed numerically as YYYYMMDD * Remove build date and SVN version
This commit is contained in:
@@ -15,7 +15,7 @@ jobs:
|
|||||||
run: echo "SHA_SHORT=$(git rev-parse --short ${{ github.sha }})" | Out-File -FilePath $env:GITHUB_ENV -Append
|
run: echo "SHA_SHORT=$(git rev-parse --short ${{ github.sha }})" | Out-File -FilePath $env:GITHUB_ENV -Append
|
||||||
|
|
||||||
- name: Get date
|
- name: Get date
|
||||||
run: echo "DATE=$(git log -1 --date=format:'%Y%b%d' --format=%cd)" | Out-File -FilePath $env:GITHUB_ENV -Append
|
run: echo "DATE=$(git log -1 --date=format:'%Y%m%d' --format=%cd)" | Out-File -FilePath $env:GITHUB_ENV -Append
|
||||||
|
|
||||||
- name: Check vars
|
- name: Check vars
|
||||||
run: |
|
run: |
|
||||||
@@ -45,7 +45,7 @@ jobs:
|
|||||||
run: msbuild ja2_VS2019.sln -property:Configuration=MapEditor
|
run: msbuild ja2_VS2019.sln -property:Configuration=MapEditor
|
||||||
|
|
||||||
- name: Rename Map Editor output
|
- name: Rename Map Editor output
|
||||||
run: mv bin/VS2013/MapEditor_EN_Release_master.exe ja2/ja2_mapeditor_113_${{ env.SHA_SHORT }}.exe
|
run: mv bin/VS2013/MapEditor_EN_Release_master.exe ja2/ja2_mapeditor_113_${{ env.DATE }}_${{ env.SHA_SHORT }}.exe
|
||||||
|
|
||||||
- name: Replace GameVersion.cpp (JA2)
|
- name: Replace GameVersion.cpp (JA2)
|
||||||
run: |
|
run: |
|
||||||
@@ -64,7 +64,7 @@ jobs:
|
|||||||
run: msbuild ja2_VS2019.sln -property:Configuration=Release
|
run: msbuild ja2_VS2019.sln -property:Configuration=Release
|
||||||
|
|
||||||
- name: Rename JA2 output
|
- name: Rename JA2 output
|
||||||
run: mv bin/VS2013/JA2_EN_Release_master_VS2019.exe ja2/ja2_113_${{ env.SHA_SHORT }}.exe
|
run: mv bin/VS2013/JA2_EN_Release_master_VS2019.exe ja2/ja2_113_${{ env.DATE }}_${{ env.SHA_SHORT }}.exe
|
||||||
|
|
||||||
- name: Replace GameVersion.cpp and builddefines.h (JA2 UB)
|
- name: Replace GameVersion.cpp and builddefines.h (JA2 UB)
|
||||||
run: |
|
run: |
|
||||||
@@ -98,7 +98,7 @@ jobs:
|
|||||||
run: msbuild ja2_VS2019.sln -property:Configuration=Release
|
run: msbuild ja2_VS2019.sln -property:Configuration=Release
|
||||||
|
|
||||||
- name: Rename JA2 UB output
|
- name: Rename JA2 UB output
|
||||||
run: mv bin/VS2013/JA2_EN_Release_master_VS2019.exe ja2/ja2_ub_113_${{ env.SHA_SHORT }}.exe
|
run: mv bin/VS2013/JA2_EN_Release_master_VS2019.exe ja2/ja2_ub_113_${{ env.DATE }}_${{ env.SHA_SHORT }}.exe
|
||||||
|
|
||||||
- name: Upload output
|
- name: Upload output
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|||||||
+2
-2
@@ -55,8 +55,8 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
CHAR8 czVersionNumber[16] = { "Build 22.11.04" }; //YY.MM.DD
|
CHAR8 czVersionNumber[16] = { "Local build" };
|
||||||
CHAR16 zTrackingNumber[16] = { L"Z" };
|
CHAR16 zTrackingNumber[16] = { L"Z" };
|
||||||
CHAR16 zRevisionNumber[16] = { L"Revision 9405" };
|
CHAR16 zRevisionNumber[16] = { L"" };
|
||||||
|
|
||||||
// SAVE_GAME_VERSION is defined in header, change it there
|
// SAVE_GAME_VERSION is defined in header, change it there
|
||||||
|
|||||||
Reference in New Issue
Block a user