Bump version to 9.1.3 #57
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: OKEGui Release | |
| on: | |
| push: | |
| tags: "[0-9]*" | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: windows-2022 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Setup MSBuild | |
| uses: microsoft/setup-msbuild@v2 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.17' | |
| - name: Navigate to Workspace | |
| run: cd $GITHUB_WORKSPACE | |
| - name: Clone & Build eac3to-wrapper | |
| shell: bash | |
| run: | | |
| git clone https://github.com/AmusementClub/eac3to-wrapper | |
| cd eac3to-wrapper | |
| go build -ldflags "-X main.version=$(git describe --tags)" | |
| cd .. | |
| - name: Restore packages | |
| run: msbuild.exe OKEGui/OKEGui.sln /t:Restore /p:RestorePackagesConfig=True | |
| - name: Build Solution | |
| run: | | |
| msbuild.exe OKEGui/OKEGui.sln /nologo /t:OKEGui /p:DeleteExistingFiles=True /p:platform="Any CPU" /p:configuration="Release" | |
| - name: Integrate tools pack from previous release | |
| shell: bash | |
| run: | | |
| set -ex | |
| curl -s -o tools.zip -L https://github.com/vcb-s/OKEGui/releases/download/8.7.1/OKEGui-v8.7.1.zip | |
| 7z x -otmp tools.zip | |
| # clean up unnecessary files | |
| rm -rf tmp/OKEGui/tools/eac3to/* | |
| rm -rf tmp/OKEGui/tools/flac/* | |
| rm -f tmp/OKEGui/tools/qaac/libsox*.dll | |
| rm -f tmp/OKEGui/tools/qaac/qaac64.exe | |
| rm -f tmp/OKEGui/tools/qaac/refalac64.exe | |
| rm -f tmp/OKEGui/tools/mkvtoolnix/gMKV* | |
| rm -f tmp/OKEGui/tools/mkvtoolnix/Newtonsoft.Json.dll | |
| rm -f tmp/OKEGui/tools/x26x/* | |
| rm -f tmp/OKEGui/tools/rpc/* | |
| # tweak mkvtoolnix setting | |
| sed -i -e 's|chapterNameTemplate=.*|chapterNameTemplate=Chapter <NUM:2>|g' tmp/OKEGui/tools/mkvtoolnix/mkvtoolnix-gui.ini | |
| sed -i -e 's|updates\\checkForUpdates=true|updates\\checkForUpdates=false|g' tmp/OKEGui/tools/mkvtoolnix/mkvtoolnix-gui.ini | |
| sed -i -e 's|useLegacyFontMIMETypes=false|useLegacyFontMIMETypes=true|g' tmp/OKEGui/tools/mkvtoolnix/mkvtoolnix-gui.ini | |
| # integrate into release | |
| mv tmp/OKEGui/tools "./OKEGui/OKEGui/bin/Release/" | |
| rm -rf tmp | |
| - name: Integrate eac3to and eac3to-wrapper | |
| shell: bash | |
| run: | | |
| set -ex | |
| mkdir -p "./OKEGui/OKEGui/bin/Release/tools/eac3to" | |
| # | |
| curl -s -o eac3to.rar -L https://github.com/vcb-s/OKEGui/releases/download/tools/eac3to_3.52.rar | |
| 7z x -oeac3to eac3to.rar | |
| rm -f eac3to/*.wav | |
| rm -f eac3to/libdcadec.dll | |
| # update eac3to's libdcadec.dll, see https://forum.videohelp.com/threads/400707-UsEac3to-1-3-0-DTS-HD-MA-to-FLAC#post2651323 | |
| curl -s -o dcadec.zip -L https://github.com/foo86/dcadec/releases/download/v0.2.0/dcadec-0.2.0-win32.zip | |
| 7z x -odcadec dcadec.zip | |
| mv dcadec/libdcadec.dll eac3to/libdcadec.dll | |
| # | |
| cp -r eac3to/* "./OKEGui/OKEGui/bin/Release/tools/eac3to" | |
| cp eac3to-wrapper/eac3to-wrapper.exe "./OKEGui/OKEGui/bin/Release/tools/eac3to" | |
| - name: Integrate qaac | |
| shell: bash | |
| run: | | |
| set -ex | |
| mkdir -p "./OKEGui/OKEGui/bin/Release/tools/qaac" | |
| # | |
| curl -s -o qaac.zip -L https://github.com/nu774/qaac/releases/download/v2.85/qaac_2.85.zip | |
| 7z x -oqaac qaac.zip | |
| # | |
| cp qaac/qaac_2.85/x64/* "./OKEGui/OKEGui/bin/Release/tools/qaac" | |
| - name: Integrate flac | |
| shell: bash | |
| run: | | |
| set -ex | |
| mkdir -p "./OKEGui/OKEGui/bin/Release/tools/flac" | |
| # | |
| curl -s -o flac.zip -L https://www.rarewares.org/files/lossless/flac-1.5.0-AVX2.zip | |
| 7z x -oflac flac.zip | |
| cp flac/flac.exe "./OKEGui/OKEGui/bin/Release/tools/flac" | |
| # | |
| curl -s -o flac_dll-x64.zip -L https://www.rarewares.org/files/lossless/flac_dll-1.5.0-x64.zip | |
| 7z x -oflac_dll-x64 flac_dll-x64.zip | |
| # update qaac's libflac | |
| rm -f "./OKEGui/OKEGui/bin/Release/tools/qaac/libFLAC.dll" | |
| cp flac_dll-x64/libFLAC.dll "./OKEGui/OKEGui/bin/Release/tools/qaac" | |
| # | |
| curl -s -o flac_dll-x86.zip -L https://www.rarewares.org/files/lossless/flac_dll-1.5.0-x86.zip | |
| 7z x -oflac_dll-x86 flac_dll-x86.zip | |
| # update eac3to's libflac | |
| rm -f "./OKEGui/OKEGui/bin/Release/tools/eac3to/libFLAC.dll" | |
| cp flac_dll-x86/libFLAC.dll "./OKEGui/OKEGui/bin/Release/tools/eac3to" | |
| - name: Get dependency msvcr120.dll | |
| shell: cmd | |
| run: | | |
| @echo on | |
| curl -s -o vcredist_x86.exe -L https://aka.ms/highdpimfc2013x86enu | |
| .\vcredist_x86.exe /install /quiet /norestart | |
| cp "C:\Windows\SysWOW64\msvcr120.dll" "./OKEGui/OKEGui/bin/Release/tools/eac3to" | |
| - name: Integrate gMKVExtractGUI | |
| shell: bash | |
| run: | | |
| set -ex | |
| mkdir -p "./OKEGui/OKEGui/bin/Release/tools/mkvtoolnix" | |
| # | |
| curl -s -o gMKVExtractGUI.7z -L https://github.com/Gpower2/gMKVExtractGUI/releases/download/v2.11.1/gMKVExtractGUI.v2.11.1.7z | |
| 7z x -ogMKVExtractGUI gMKVExtractGUI.7z | |
| # | |
| cp gMKVExtractGUI/* "./OKEGui/OKEGui/bin/Release/tools/mkvtoolnix" | |
| - name: Integrate x264 tmod and x265 Kyouko | |
| shell: bash | |
| run: | | |
| set -ex | |
| mkdir -p "./OKEGui/OKEGui/bin/Release/tools/x26x" | |
| # | |
| curl -s -o x264.7z -L https://github.com/jpsdr/x264/releases/download/r3214/x264_tmod_r3214.7z | |
| 7z x -otmp x264.7z | |
| cp -a tmp/posix/x264_x64.exe "./OKEGui/OKEGui/bin/Release/tools/x26x/x264.exe" | |
| rm -rf tmp | |
| # | |
| curl -s -o x265.7z -L https://github.com/AmusementClub/x265/releases/download/Kyouko-4.1-AC1/x265-win64-skylake-clang.Kyouko-4.1-AC1.7z | |
| 7z x -otmp x265.7z | |
| cp -a tmp/x265.exe "./OKEGui/OKEGui/bin/Release/tools/x26x/x265.exe" | |
| rm -rf tmp | |
| - name: Integrate RP-Checker | |
| shell: bash | |
| run: | | |
| set -ex | |
| mkdir -p "./OKEGui/OKEGui/bin/Release/tools/rpc" | |
| # | |
| curl -s -o RPChecker.exe -L https://github.com/vcb-s/rp-checker/releases/download/1.0.7.2/RPChecker.exe | |
| mv RPChecker.exe "./OKEGui/OKEGui/bin/Release/tools/rpc/" | |
| # | |
| curl -s -o RpcTemplate.vpy https://raw.githubusercontent.com/AmusementClub/vapoursynth-script/master/RpcTemplate.vpy | |
| mv RpcTemplate.vpy "./OKEGui/OKEGui/bin/Release/tools/rpc/" | |
| - name: Package release | |
| shell: bash | |
| run: | | |
| git clone https://github.com/AkarinVS/exe | |
| export PATH=`pwd`/exe/:$PATH | |
| cp -r dist/windows/examples ./OKEGui/OKEGui/bin/Release | |
| pushd ./OKEGui/OKEGui/bin | |
| mv Release OKEGui | |
| zip -9r ../../../"OKEGui-v$(git describe --tags).zip" OKEGui | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: release | |
| path: | | |
| OKEGui-*.zip | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: OKEGui-*.zip | |
| draft: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |