Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
TransparentLC committed Jul 9, 2022
1 parent 3211b90 commit fe6c9c1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
elif [ $BUILD_OS == "macOS" ]; then
REAL_ESRGAN_PLATFORM=macos
fi
if [ $RUNNER_OS == "macOS" ]; then
if [ $BUILD_OS == "macOS" ]; then
cd "dist-${BUILD_OS}/Real-ESRGAN GUI.app/Contents/MacOS"
else
cd "dist-${BUILD_OS}"
Expand All @@ -117,14 +117,12 @@ jobs:
"https://github.com/xinntao/Real-ESRGAN/releases/download/${REAL_ESRGAN_VERSION}/realesrgan-ncnn-vulkan-${REAL_ESRGAN_RELEASE_TIME}-${REAL_ESRGAN_PLATFORM}.zip"
unzip realesrgan-ncnn-vulkan.zip
rm -f realesrgan-ncnn-vulkan.zip input.jpg input2.jpg onepiece_demo.mp4
if [ $RUNNER_OS == "macOS" ]; then
if [ $BUILD_OS == "macOS" ]; then
cp ../../../../README.md README_gui.md
else
cp ../README.md README_gui.md
fi
echo $(pwd)
ls -la
if [ $BUILD_OS == "Windows" ]; then
7z a \
../release/realesrgan-gui-${REAL_ESRGAN_PLATFORM}.7z \
Expand All @@ -134,7 +132,7 @@ jobs:
../release/realesrgan-gui-${REAL_ESRGAN_PLATFORM}-bundled-${REAL_ESRGAN_VERSION}.7z \
. \
-mx9 -mfb256 -md1g -ms
elif [ $RUNNER_OS == "Linux" ]; then
elif [ $BUILD_OS == "Linux" ]; then
chmod +x realesrgan-gui realesrgan-ncnn-vulkan
XZ_OPT=-e9 tar Jcvf \
../release/realesrgan-gui-${REAL_ESRGAN_PLATFORM}.tar.xz \
Expand All @@ -144,7 +142,7 @@ jobs:
../release/realesrgan-gui-${REAL_ESRGAN_PLATFORM}-bundled-${REAL_ESRGAN_VERSION}.tar.xz \
--transform "s,^\.,realesrgan-gui," \
.
elif [ $RUNNER_OS == "macOS" ]; then
elif [ $BUILD_OS == "macOS" ]; then
chmod +x realesrgan-gui realesrgan-ncnn-vulkan
cd ../../../
XZ_OPT=-e9 tar Jcvf \
Expand Down

0 comments on commit fe6c9c1

Please sign in to comment.