Skip to content

Commit

Permalink
Merge pull request #48 from jorge-barroso/work/update_workflow_with_r…
Browse files Browse the repository at this point in the history
…educed_icons

Updated release workflow
  • Loading branch information
jorge-barroso authored Feb 16, 2023
2 parents 28ec092 + e0ddb0e commit 8ca3c78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ jobs:
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: |
echo "Configuring a CMake Release environment"
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=/usr/bin
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=/usr
- name: Build
# Build your program with the given configuration
run: |
echo "Building binary"
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j $(nproc)
- name: Preparing Artifact
run: |
dist_dir="${{github.workspace}}/res"
Expand Down Expand Up @@ -108,14 +108,8 @@ jobs:
mkdir -p .pkg/DEBIAN
find ./usr -type f -exec install -Dm755 '{}' "${{github.workspace}}/.pkg/{}" \;
install -Dm644 "./resources/desktop/harvest.svg" "${{github.workspace}}/.pkg/usr/share/icons/hicolor/scalable/apps/harvest.svg"
install -Dm755 "./resources/desktop/harvest.desktop" "${{github.workspace}}/.pkg/usr/share/applications/harvest.desktop"
install -Dm644 "./debian/copyright" "${{github.workspace}}/.pkg/DEBIAN/copyright";
sed -i "s/\${copyright_year}/$(date '+%Y')/g" ${{github.workspace}}/.pkg/DEBIAN/copyright
for _size in 16 24 32 48 64 96 128 256 512; do
install -Dm644 "./resources/icons/hicolor/${_size}x${_size}.png" "${{github.workspace}}/.pkg/usr/share/icons/hicolor/${_size}x${_size}/apps/harvest.png"
done
- name: Archive Package Directory
uses: actions/upload-artifact@v3
with:
Expand Down
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,9 @@ find_package(Qt6 ${QT6_MIN_VERSION} REQUIRED
Widgets
Network
LinguistTools
Svg
)

target_link_libraries(harvest Qt6::Core Qt6::Widgets Qt6::Gui Qt6::Network Qt6::Svg)
target_link_libraries(harvest Qt6::Core Qt6::Widgets Qt6::Gui Qt6::Network)

qt6_add_translations(harvest TS_FILES
harvesttimer-qt_es_ES.ts
Expand Down

0 comments on commit 8ca3c78

Please sign in to comment.