mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-01-09 04:37:44 +00:00
resolving merge conflicts
This commit is contained in:
66
.github/workflows/MacOS-pack.yml
vendored
Normal file
66
.github/workflows/MacOS-pack.yml
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
name: Packaging(MacOS)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- feature/RND-680-macos-.dmg-package-build
|
||||
paths-ignore:
|
||||
- 'README.md'
|
||||
- 'LICENSE'
|
||||
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- 'README.md'
|
||||
- 'LICENSE'
|
||||
|
||||
env:
|
||||
PRODUCT: flameshot
|
||||
|
||||
jobs:
|
||||
catalina:
|
||||
name: macOS Catalina 10.15
|
||||
runs-on: macos-10.15
|
||||
|
||||
steps:
|
||||
- name: Checkout Source code
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: Install Qt
|
||||
run: brew install qt cmake
|
||||
|
||||
- name: Configure
|
||||
run: |
|
||||
mkdir build
|
||||
cd build
|
||||
rm -rf ./src/flameshot.dmg ./src/flameshot.app/
|
||||
cmake .. -DQt5_DIR=$(brew --prefix qt5)/lib/cmake/Qt5
|
||||
|
||||
- name: Compile
|
||||
run: |
|
||||
cd build
|
||||
make
|
||||
|
||||
- name: Build dmg package
|
||||
run: |
|
||||
cd build/src
|
||||
/usr/local/opt/qt5/bin/macdeployqt flameshot.app -dmg
|
||||
|
||||
- name: Update dmg package links
|
||||
run: |
|
||||
cd build/src
|
||||
../../packaging/macos/update_package.sh
|
||||
|
||||
- name: Upload dmg package
|
||||
shell: bash
|
||||
run: |
|
||||
python3 -m pip install -U -q requests
|
||||
echo "================MacOS dmg image download link================"
|
||||
echo $(python3 $GITHUB_WORKSPACE/scripts/upload_services/transferwee.py upload $GITHUB_WORKSPACE/build/src/flameshot.dmg)
|
||||
echo "=====no operation for you can see link in the log console====="
|
||||
|
||||
- name: Artifact Upload
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: MacOS-artifact
|
||||
path: ${{ github.workspace }}/build/src/flameshot.dmg
|
||||
1
.github/workflows/build_cmake.yml
vendored
1
.github/workflows/build_cmake.yml
vendored
@@ -7,6 +7,7 @@ on:
|
||||
- 'README.md'
|
||||
- 'LICENSE'
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
paths-ignore:
|
||||
- 'README.md'
|
||||
- 'LICENSE'
|
||||
|
||||
Reference in New Issue
Block a user