update build system (#1350)

* Automate metainfo release tag.

* Cosmetic changes
This commit is contained in:
Roman Fomin 2023-12-25 19:05:49 +07:00 committed by GitHub
parent b6ce37457c
commit e49d3d8844
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 31 additions and 33 deletions

View File

@ -21,26 +21,22 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
config: config:
- { - name: Linux GCC
name: Linux GCC, os: ubuntu-latest
os: ubuntu-latest, compiler: gcc
compiler: gcc, shell: bash
shell: bash,
} - name: macOS Clang
- { os: macos-latest
name: macOS Clang, compiler: clang
os: macos-latest, shell: bash
compiler: clang,
shell: bash, - name: MSYS2 UCRT64
} os: windows-latest
- { compiler: gcc
name: MSYS2 UCRT64, shell: 'msys2 {0}'
os: windows-latest, msystem: ucrt64
compiler: gcc, msys-env: mingw-w64-ucrt-x86_64
shell: 'msys2 {0}',
msystem: ucrt64,
msys-env: mingw-w64-ucrt-x86_64,
}
steps: steps:
- name: Install dependencies (Linux) - name: Install dependencies (Linux)

View File

@ -23,14 +23,11 @@ jobs:
strategy: strategy:
matrix: matrix:
config: config:
- { - name: x64
name: x64, arch: x64
arch: x64,
} - name: Win32
- { arch: x86
name: Win32,
arch: x86,
}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4

View File

@ -5,8 +5,7 @@ include(CheckSymbolExists)
# Adds the cmake directory to the CMake include path. # Adds the cmake directory to the CMake include path.
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
# X_VCPKG_APPLOCAL_DEPS_INSTALL automatically installs dependencies. CMP0077 # X_VCPKG_APPLOCAL_DEPS_INSTALL automatically installs dependencies.
# supress some arcane CMake warning.
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW) set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
set(X_VCPKG_APPLOCAL_DEPS_INSTALL ON) set(X_VCPKG_APPLOCAL_DEPS_INSTALL ON)

View File

@ -1,6 +1,13 @@
string(TIMESTAMP PROJECT_DATE "%Y-%m-%d")
configure_file(io.github.fabiangreffrath.woof.metainfo.in
io.github.fabiangreffrath.woof.metainfo.xml
ESCAPE_QUOTES @ONLY)
if(UNIX AND NOT APPLE) if(UNIX AND NOT APPLE)
install(FILES io.github.fabiangreffrath.woof.desktop DESTINATION share/applications) install(FILES io.github.fabiangreffrath.woof.desktop DESTINATION share/applications)
install(FILES io.github.fabiangreffrath.woof.metainfo.xml DESTINATION share/metainfo) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/io.github.fabiangreffrath.woof.metainfo.xml"
DESTINATION share/metainfo)
install(FILES io.github.fabiangreffrath.woof-setup.desktop DESTINATION share/applications) install(FILES io.github.fabiangreffrath.woof-setup.desktop DESTINATION share/applications)
install(FILES woof.png DESTINATION share/icons/hicolor/128x128/apps) install(FILES woof.png DESTINATION share/icons/hicolor/128x128/apps)
install(FILES woof-setup.png DESTINATION share/icons/hicolor/128x128/apps) install(FILES woof-setup.png DESTINATION share/icons/hicolor/128x128/apps)

View File

@ -48,7 +48,6 @@
<content_attribute id="social-chat">intense</content_attribute> <content_attribute id="social-chat">intense</content_attribute>
</content_rating> </content_rating>
<releases> <releases>
<release version="12.0.0" date="2023-09-15"/> <release version="@PROJECT_VERSION@" date="@PROJECT_DATE@"/>
<release version="11.3.0" date="2023-07-06"/>
</releases> </releases>
</component> </component>