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
matrix:
config:
- {
name: Linux GCC,
os: ubuntu-latest,
compiler: gcc,
shell: bash,
}
- {
name: macOS Clang,
os: macos-latest,
compiler: clang,
shell: bash,
}
- {
name: MSYS2 UCRT64,
os: windows-latest,
compiler: gcc,
shell: 'msys2 {0}',
msystem: ucrt64,
msys-env: mingw-w64-ucrt-x86_64,
}
- name: Linux GCC
os: ubuntu-latest
compiler: gcc
shell: bash
- name: macOS Clang
os: macos-latest
compiler: clang
shell: bash
- name: MSYS2 UCRT64
os: windows-latest
compiler: gcc
shell: 'msys2 {0}'
msystem: ucrt64
msys-env: mingw-w64-ucrt-x86_64
steps:
- name: Install dependencies (Linux)

View File

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

View File

@ -5,8 +5,7 @@ include(CheckSymbolExists)
# Adds the cmake directory to the CMake include path.
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
# X_VCPKG_APPLOCAL_DEPS_INSTALL automatically installs dependencies. CMP0077
# supress some arcane CMake warning.
# X_VCPKG_APPLOCAL_DEPS_INSTALL automatically installs dependencies.
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
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)
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 woof.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_rating>
<releases>
<release version="12.0.0" date="2023-09-15"/>
<release version="11.3.0" date="2023-07-06"/>
<release version="@PROJECT_VERSION@" date="@PROJECT_DATE@"/>
</releases>
</component>