Skip to content

Commit

Permalink
Rename output file
Browse files Browse the repository at this point in the history
  • Loading branch information
Belonit committed Oct 2, 2024
1 parent 2c30a74 commit 072de31
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ runs:
with:
name: ${{ inputs.artifact-name }}
path: |
${{inputs.sln-path}}/${{inputs.build-config}}/cncnet5.dll
${{inputs.sln-path}}/${{inputs.build-config}}/cncnet5.pdb
${{inputs.sln-path}}/${{inputs.build-config}}/CnCNet-Spawner.dll
${{inputs.sln-path}}/${{inputs.build-config}}/CnCNet-Spawner.pdb
./LICENSE.md
./README.md
2 changes: 1 addition & 1 deletion .github/workflows/pr-nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
env:
SOLUTION_PATH: .
BUILD_CONFIGURATION: DevBuild
ARTIFACT_NAME: cncnet5_${{ github.ref_name }}.zip
ARTIFACT_NAME: CnCNet-Spawner_${{ github.ref_name }}.zip

jobs:
build:
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

env:
RELEASE_NAME: ${{ github.ref_name }}
ARTIFACT_NAME: cncnet5_${{ github.ref_name }}.zip
ARTIFACT_NAME: CnCNet-Spawner_${{ github.ref_name }}

SOLUTION_PATH: .
BUILD_CONFIGURATION: Release
Expand Down Expand Up @@ -41,14 +41,15 @@ jobs:
mkdir ./artifact/Regular
copy ./LICENSE.md ./artifact/Regular/LICENSE.md
copy ./README.md ./artifact/Regular/README.md
copy ./${{ env.BUILD_CONFIGURATION }}/cncnet5.pdb ./artifact/Regular/cncnet5.pdb
copy ./${{ env.BUILD_CONFIGURATION }}/cncnet5.dll ./artifact/Regular/cncnet5.dll
copy ./${{ env.BUILD_CONFIGURATION }}/CnCNet-Spawner.pdb ./artifact/Regular/CnCNet-Spawner.pdb
copy ./${{ env.BUILD_CONFIGURATION }}/CnCNet-Spawner.dll ./artifact/Regular/CnCNet-Spawner.dll
7z a ${{ env.ARTIFACT_NAME }}.zip ./artifact/Regular/*
mkdir ./artifact/HardEnd
copy ./LICENSE.md ./artifact/HardEnd/LICENSE.md
copy ./README.md ./artifact/HardEnd/README.md
copy "./${{ env.BUILD_CONFIGURATION }}-HardEnd/cncnet5.pdb" ./artifact/HardEnd/cncnet5.pdb
copy "./${{ env.BUILD_CONFIGURATION }}-HardEnd/cncnet5.dll" ./artifact/HardEnd/cncnet5.dll
7z a ${{ env.ARTIFACT_NAME }} ./artifact/*
copy "./${{ env.BUILD_CONFIGURATION }}-HardEnd/CnCNet-Spawner.pdb" ./artifact/HardEnd/CnCNet-Spawner.pdb
copy "./${{ env.BUILD_CONFIGURATION }}-HardEnd/CnCNet-Spawner.dll" ./artifact/HardEnd/CnCNet-Spawner.dll
7z a ${{ env.ARTIFACT_NAME }}-HardEnd.zip ./artifact/HardEnd/*
- name: Upload New Release
uses: softprops/action-gh-release@v2
Expand All @@ -59,7 +60,8 @@ jobs:
append_body: true
draft: true
files: |
${{ env.ARTIFACT_NAME }}
${{ env.ARTIFACT_NAME }}.zip
${{ env.ARTIFACT_NAME }}-HardEnd.zip
request-anti-cheat-build:
needs: [build]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Building manually
- in Visual Studio: open the solution file in VS and build it (`Debug` build config is recommended);
- in VSCode: open the project folder and hit `Run Build Task...` (`Ctrl + Shift + B`);
- barebones: run `scripts/build_debug.bat`.
4. Upon build completion the resulting `cncnet5.dll` and `cncnet5.pdb` would be placed in the subfolder identical to the name of the build config executed.
4. Upon build completion the resulting `CnCNet-Spawner.dll` and `CnCNet-Spawner.pdb` would be placed in the subfolder identical to the name of the build config executed.

Credits
-------
Expand Down
2 changes: 1 addition & 1 deletion Spawner.vcxproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="Globals">
<ProjectName>cncnet5</ProjectName>
<ProjectName>CnCNet-Spawner</ProjectName>
<RootNamespace>YRpp-Spawner</RootNamespace>
<ProjectGuid>{264BD0D2-4BF7-4CFF-B33E-95A018BEA951}</ProjectGuid>
<VCProjectVersion>15.0</VCProjectVersion>
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#endif

#define PRODUCT_NAME "YRpp-Spawner " PRODUCT_TYPE
#define FILE_DESCRIPTION "CnCNet5: Spawner " PRODUCT_TYPE
#define FILE_DESCRIPTION "CnCNet-Spawner: " PRODUCT_TYPE

// Nightly defines GIT_COMMIT and GIT_BRANCH in GH Actions

Expand Down
2 changes: 1 addition & 1 deletion src/version.rc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ BEGIN
VALUE "FileVersion", FILE_VERSION_STR "\0"
VALUE "ProductVersion", PRODUCT_VERSION "\0"
VALUE "InternalName", PRODUCT_NAME "\0"
VALUE "OriginalFilename", "cncnet5.dll\0"
VALUE "OriginalFilename", "CnCNet-Spawner.dll\0"
VALUE "LegalTrademarks", "Command & Conquer is a trademark of Westwood Studios\0"

#ifndef IS_RELEASE_VER
Expand Down

0 comments on commit 072de31

Please sign in to comment.