From 0dbf987ff26be181fa567dd674585353299c0a95 Mon Sep 17 00:00:00 2001 From: Syping Date: Fri, 8 Mar 2024 01:25:50 +0100 Subject: [PATCH] add ci and simplify executable description --- .github/workflows/windows.yml | 36 +++++++++++++++++++++++++ src/resources/win32/dtranslatebot.rc.in | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/windows.yml diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 0000000..53d363f --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,36 @@ +name: Windows +on: push +jobs: + Release: + runs-on: windows-latest + env: + BUILD_TYPE: Release + defaults: + run: + shell: msys2 {0} + steps: + - uses: msys2/setup-msys2@v2 + with: + msystem: clang64 + update: true + install: >- + git + make + mingw-w64-clang-x86_64-clang + mingw-w64-clang-x86_64-cmake + mingw-w64-clang-x86_64-ninja + perl + - name: Cloning + uses: actions/checkout@v4 + - name: Configure CMake + run: cmake -B ./build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_EXE_LINKER_FLAGS="-static -lc++" -DWITH_DPP_AS_EXTERNAL_PROJECT=TRUE -GNinja + - name: Build + run: cmake --build ./build --config ${{env.BUILD_TYPE}} + - name: Install + run: cmake --install ./build --config ${{env.BUILD_TYPE}} --prefix ./install --strip + - name: Upload + uses: actions/upload-artifact@v4 + with: + name: Windows + path: | + ./install/bin/ diff --git a/src/resources/win32/dtranslatebot.rc.in b/src/resources/win32/dtranslatebot.rc.in index a3e475d..d1dc7ce 100644 --- a/src/resources/win32/dtranslatebot.rc.in +++ b/src/resources/win32/dtranslatebot.rc.in @@ -17,7 +17,7 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "CompanyName", "Syping" - VALUE "FileDescription", "Open Source Discord Translation Bot" + VALUE "FileDescription", "Discord Translation Bot" VALUE "FileVersion", "@dtranslatebot_VERSION@" VALUE "InternalName", "dtranslatebot" VALUE "LegalCopyright", "Copyright © 2023-2024 Syping"