Skip to content

Commit

Permalink
Update file paths for macOS and Windows workflows
Browse files Browse the repository at this point in the history
Signed-off-by: xiaoming <[email protected]>
  • Loading branch information
QQxiaoming committed Feb 13, 2024
1 parent 5dcdc35 commit e70b15c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
with:
name: YUVviewer_macos
path: |
./build_release/out/YUVviewer.dmg
./dmgOut/*.dmg
- name: Run tests
run: |
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
with:
name: YUVviewer_macos_arm64
path: |
./build_release/out/YUVviewer.dmg
./dmgOut/*.dmg
- name: Run tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
with:
name: YUVviewer_windows
path: |
./InnoSetup/YUVviewer_setup.exe
./output/*.exe
- name: Run tests
run: |
Expand Down
9 changes: 9 additions & 0 deletions build_dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,14 @@ cp $OPENCV_DIR/lib/libopencv_imgcodecs.4.0.dylib ./YUVviewer.app/Contents/Framew
cp $OPENCV_DIR/lib/libopencv_core.4.0.dylib ./YUVviewer.app/Contents/Frameworks/libopencv_core.4.0.dylib
otool -L ./YUVviewer.app/Contents/MacOS/YUVviewer
./build-dmg.sh YUVviewer
cd ../../
mkdir dmgOut
cpu=$(sysctl -n machdep.cpu.brand_string)
ARCH="x86_64"
case $cpu in
*Intel*) ARCH="x86_64" ;;
*Apple*) ARCH="arm64" ;;
esac
cp ./build_release/out/YUVviewer.dmg ./dmgOut/YUVviewer_macos_"$YUVVIEWER_VERSION"_"$ARCH".dmg
echo build success!
###############################################################################
7 changes: 7 additions & 0 deletions build_setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,12 @@ xcopy /y "%QT_TOOLS_DIR%\*.dll" ".\InnoSetup\build\"
echo "wait inno build setup..."
iscc /q ".\InnoSetup\build_temp_setup.iss"
del .\InnoSetup\build_temp_setup.iss
FOR /F "delims=. tokens=1-3" %%x IN ("%YUVVIEWER_VERSION%") DO (
set "YUVVIEWER_MAJARVERSION=%%x"
set "YUVVIEWER_SUBVERSION=%%y"
set "YUVVIEWER_REVISION=%%z"
)
mkdir ".\output"
echo F|xcopy /S /Q /Y /F ".\InnoSetup\YUVviewer_setup.exe" ".\output\YUVviewer_windows_V%YUVVIEWER_MAJARVERSION%%YUVVIEWER_SUBVERSION%%YUVVIEWER_REVISION%_x86_64_setup.exe"
echo "build success!"
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

0 comments on commit e70b15c

Please sign in to comment.