2020-06-07 21:31:55 +00:00
|
|
|
#!/bin/bash -e
|
2018-07-05 18:55:53 +00:00
|
|
|
|
2020-06-07 21:31:55 +00:00
|
|
|
prefix_dir=$PWD/mingw_prefix
|
|
|
|
mkdir -p "$prefix_dir"
|
|
|
|
ln -snf . "$prefix_dir/usr"
|
|
|
|
ln -snf . "$prefix_dir/local"
|
|
|
|
|
|
|
|
wget="wget -nc --progress=bar:force"
|
2024-02-26 22:16:48 +00:00
|
|
|
gitclone="git clone --depth=1 --recursive --shallow-submodules"
|
2018-07-05 18:55:53 +00:00
|
|
|
|
2020-06-30 17:40:22 +00:00
|
|
|
# -posix is Ubuntu's variant with pthreads support
|
|
|
|
export CC=$TARGET-gcc-posix
|
2024-03-21 00:00:00 +00:00
|
|
|
export AS=$TARGET-gcc-posix
|
2020-06-30 17:40:22 +00:00
|
|
|
export CXX=$TARGET-g++-posix
|
2018-07-05 18:55:53 +00:00
|
|
|
export AR=$TARGET-ar
|
|
|
|
export NM=$TARGET-nm
|
|
|
|
export RANLIB=$TARGET-ranlib
|
|
|
|
|
2020-06-07 21:31:55 +00:00
|
|
|
export CFLAGS="-O2 -pipe -Wall -D_FORTIFY_SOURCE=2"
|
|
|
|
export LDFLAGS="-fstack-protector-strong"
|
|
|
|
|
2023-08-20 13:09:09 +00:00
|
|
|
# anything that uses pkg-config
|
|
|
|
export PKG_CONFIG_SYSROOT_DIR="$prefix_dir"
|
|
|
|
export PKG_CONFIG_LIBDIR="$PKG_CONFIG_SYSROOT_DIR/lib/pkgconfig"
|
|
|
|
|
2024-05-21 20:48:47 +00:00
|
|
|
if [[ "$TARGET" == "i686-"* ]]; then
|
|
|
|
export WINEPATH="`$CC -print-file-name=`;/usr/$TARGET/lib"
|
|
|
|
fi
|
|
|
|
|
2023-08-20 13:09:09 +00:00
|
|
|
# autotools(-like)
|
|
|
|
commonflags="--disable-static --enable-shared"
|
|
|
|
|
|
|
|
# meson
|
2022-09-27 13:13:02 +00:00
|
|
|
fam=x86_64
|
|
|
|
[[ "$TARGET" == "i686-"* ]] && fam=x86
|
|
|
|
cat >"$prefix_dir/crossfile" <<EOF
|
|
|
|
[built-in options]
|
|
|
|
buildtype = 'release'
|
2024-06-05 19:20:27 +00:00
|
|
|
wrap_mode = 'nofallback'
|
2022-06-06 18:40:28 +00:00
|
|
|
[binaries]
|
2023-07-23 10:36:38 +00:00
|
|
|
c = ['ccache', '${CC}']
|
|
|
|
cpp = ['ccache', '${CXX}']
|
2022-06-06 18:40:28 +00:00
|
|
|
ar = '${AR}'
|
|
|
|
strip = '${TARGET}-strip'
|
|
|
|
pkgconfig = 'pkg-config'
|
2024-05-22 00:04:22 +00:00
|
|
|
pkg-config = 'pkg-config'
|
2022-06-06 18:40:28 +00:00
|
|
|
windres = '${TARGET}-windres'
|
2023-06-08 22:45:43 +00:00
|
|
|
dlltool = '${TARGET}-dlltool'
|
2024-06-06 21:23:35 +00:00
|
|
|
exe_wrapper = '${WINE}'
|
2022-06-06 18:40:28 +00:00
|
|
|
[host_machine]
|
|
|
|
system = 'windows'
|
2022-09-27 13:13:02 +00:00
|
|
|
cpu_family = '${fam}'
|
|
|
|
cpu = '${TARGET%%-*}'
|
2022-06-06 18:40:28 +00:00
|
|
|
endian = 'little'
|
|
|
|
EOF
|
|
|
|
|
2023-08-20 13:09:09 +00:00
|
|
|
# CMake
|
|
|
|
cmake_args=(
|
|
|
|
-Wno-dev
|
2024-05-21 23:06:54 +00:00
|
|
|
-GNinja
|
2024-03-21 00:00:00 +00:00
|
|
|
-DCMAKE_SYSTEM_PROCESSOR="${fam}"
|
2023-08-20 13:09:09 +00:00
|
|
|
-DCMAKE_SYSTEM_NAME=Windows
|
|
|
|
-DCMAKE_FIND_ROOT_PATH="$PKG_CONFIG_SYSROOT_DIR"
|
|
|
|
-DCMAKE_RC_COMPILER="${TARGET}-windres"
|
2024-03-21 00:00:00 +00:00
|
|
|
-DCMAKE_ASM_COMPILER="$AS"
|
2023-08-20 13:09:09 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
|
|
)
|
|
|
|
|
2023-07-23 10:36:38 +00:00
|
|
|
export CC="ccache $CC"
|
|
|
|
export CXX="ccache $CXX"
|
|
|
|
|
2023-08-20 14:08:46 +00:00
|
|
|
function builddir {
|
2020-06-07 21:31:55 +00:00
|
|
|
[ -d "$1/builddir" ] && rm -rf "$1/builddir"
|
|
|
|
mkdir -p "$1/builddir"
|
|
|
|
pushd "$1/builddir"
|
|
|
|
}
|
|
|
|
|
2023-08-20 14:08:46 +00:00
|
|
|
function makeplusinstall {
|
2022-09-27 13:13:02 +00:00
|
|
|
if [ -f build.ninja ]; then
|
|
|
|
ninja
|
|
|
|
DESTDIR="$prefix_dir" ninja install
|
|
|
|
else
|
|
|
|
make -j$(nproc)
|
|
|
|
make DESTDIR="$prefix_dir" install
|
|
|
|
fi
|
2020-06-07 21:31:55 +00:00
|
|
|
}
|
|
|
|
|
2023-08-20 14:08:46 +00:00
|
|
|
function gettar {
|
|
|
|
local name="${1##*/}"
|
2020-06-07 21:31:55 +00:00
|
|
|
[ -d "${name%%.*}" ] && return 0
|
|
|
|
$wget "$1"
|
|
|
|
tar -xaf "$name"
|
|
|
|
}
|
|
|
|
|
2023-08-20 14:08:46 +00:00
|
|
|
function build_if_missing {
|
|
|
|
local name=${1//-/_}
|
|
|
|
local mark_var=_${name}_mark
|
|
|
|
local mark_file=$prefix_dir/${!mark_var}
|
|
|
|
[ -e "$mark_file" ] && return 0
|
|
|
|
echo "::group::Building $1"
|
|
|
|
_$name
|
|
|
|
echo "::endgroup::"
|
|
|
|
if [ ! -e "$mark_file" ]; then
|
|
|
|
echo "Error: Build of $1 completed but $mark_file was not created."
|
|
|
|
return 2
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
## mpv's dependencies
|
|
|
|
|
|
|
|
_iconv () {
|
|
|
|
local ver=1.17
|
2020-06-07 21:31:55 +00:00
|
|
|
gettar "https://ftp.gnu.org/pub/gnu/libiconv/libiconv-${ver}.tar.gz"
|
|
|
|
builddir libiconv-${ver}
|
|
|
|
../configure --host=$TARGET $commonflags
|
|
|
|
makeplusinstall
|
|
|
|
popd
|
2023-08-20 14:08:46 +00:00
|
|
|
}
|
|
|
|
_iconv_mark=lib/libiconv.dll.a
|
2020-06-07 21:31:55 +00:00
|
|
|
|
2023-08-20 14:08:46 +00:00
|
|
|
_zlib () {
|
2024-03-02 02:44:53 +00:00
|
|
|
local ver=1.3.1
|
2022-06-13 19:36:35 +00:00
|
|
|
gettar "https://zlib.net/fossils/zlib-${ver}.tar.gz"
|
2020-06-07 21:31:55 +00:00
|
|
|
pushd zlib-${ver}
|
2022-09-27 13:13:02 +00:00
|
|
|
make -fwin32/Makefile.gcc clean
|
2023-07-23 10:36:38 +00:00
|
|
|
make -fwin32/Makefile.gcc PREFIX=$TARGET- CC="$CC" SHARED_MODE=1 \
|
2020-06-07 21:31:55 +00:00
|
|
|
DESTDIR="$prefix_dir" install \
|
|
|
|
BINARY_PATH=/bin INCLUDE_PATH=/include LIBRARY_PATH=/lib
|
|
|
|
popd
|
2023-08-20 14:08:46 +00:00
|
|
|
}
|
|
|
|
_zlib_mark=lib/libz.dll.a
|
2020-06-07 21:31:55 +00:00
|
|
|
|
2024-03-02 02:22:16 +00:00
|
|
|
_dav1d () {
|
|
|
|
[ -d dav1d ] || $gitclone https://code.videolan.org/videolan/dav1d.git
|
|
|
|
builddir dav1d
|
|
|
|
meson setup .. --cross-file "$prefix_dir/crossfile" \
|
|
|
|
-Denable_{tools,tests}=false
|
|
|
|
makeplusinstall
|
|
|
|
popd
|
|
|
|
}
|
|
|
|
_dav1d_mark=lib/libdav1d.dll.a
|
|
|
|
|
2023-08-20 14:08:46 +00:00
|
|
|
_ffmpeg () {
|
2020-06-07 21:31:55 +00:00
|
|
|
[ -d ffmpeg ] || $gitclone https://github.com/FFmpeg/FFmpeg.git ffmpeg
|
|
|
|
builddir ffmpeg
|
2023-08-28 19:37:06 +00:00
|
|
|
local args=(
|
|
|
|
--pkg-config=pkg-config --target-os=mingw32
|
|
|
|
--enable-cross-compile --cross-prefix=$TARGET- --arch=${TARGET%%-*}
|
|
|
|
--cc="$CC" --cxx="$CXX" $commonflags
|
2024-05-21 22:55:03 +00:00
|
|
|
--disable-{doc,programs}
|
2024-04-03 19:30:25 +00:00
|
|
|
--enable-muxer=spdif --enable-encoder=mjpeg,png --enable-libdav1d
|
2023-08-28 19:37:06 +00:00
|
|
|
)
|
|
|
|
pkg-config vulkan && args+=(--enable-vulkan --enable-libshaderc)
|
|
|
|
../configure "${args[@]}"
|
2020-06-07 21:31:55 +00:00
|
|
|
makeplusinstall
|
|
|
|
popd
|
2023-08-20 14:08:46 +00:00
|
|
|
}
|
|
|
|
_ffmpeg_mark=lib/libavcodec.dll.a
|
2020-06-07 21:31:55 +00:00
|
|
|
|
2023-08-20 14:08:46 +00:00
|
|
|
_shaderc () {
|
2020-06-30 17:40:22 +00:00
|
|
|
if [ ! -d shaderc ]; then
|
|
|
|
$gitclone https://github.com/google/shaderc.git
|
|
|
|
(cd shaderc && ./utils/git-sync-deps)
|
|
|
|
fi
|
|
|
|
builddir shaderc
|
2023-08-20 13:09:09 +00:00
|
|
|
cmake .. "${cmake_args[@]}" \
|
|
|
|
-DBUILD_SHARED_LIBS=OFF -DSHADERC_SKIP_TESTS=ON
|
2020-06-30 17:40:22 +00:00
|
|
|
makeplusinstall
|
|
|
|
popd
|
2023-08-20 14:08:46 +00:00
|
|
|
}
|
|
|
|
_shaderc_mark=lib/libshaderc_shared.dll.a
|
2020-09-25 16:23:05 +00:00
|
|
|
|
2023-08-20 14:08:46 +00:00
|
|
|
_spirv_cross () {
|
2020-09-25 16:23:05 +00:00
|
|
|
[ -d SPIRV-Cross ] || $gitclone https://github.com/KhronosGroup/SPIRV-Cross
|
|
|
|
builddir SPIRV-Cross
|
2023-08-20 13:09:09 +00:00
|
|
|
cmake .. "${cmake_args[@]}" \
|
2020-06-30 17:40:22 +00:00
|
|
|
-DSPIRV_CROSS_SHARED=ON -DSPIRV_CROSS_{CLI,STATIC}=OFF
|
|
|
|
makeplusinstall
|
|
|
|
popd
|
2023-08-20 14:08:46 +00:00
|
|
|
}
|
|
|
|
_spirv_cross_mark=lib/libspirv-cross-c-shared.dll.a
|
2020-06-30 17:40:22 +00:00
|
|
|
|
2024-03-02 02:21:32 +00:00
|
|
|
_nv_headers () {
|
|
|
|
[ -d nv-codec-headers ] || $gitclone https://github.com/FFmpeg/nv-codec-headers
|
|
|
|
pushd nv-codec-headers
|
|
|
|
makeplusinstall
|
|
|
|
popd
|
|
|
|
}
|
|
|
|
_nv_headers_mark=include/ffnvcodec/dynlink_loader.h
|
|
|
|
|
2023-08-20 14:08:46 +00:00
|
|
|
_vulkan_headers () {
|
2024-02-26 02:13:03 +00:00
|
|
|
[ -d Vulkan-Headers ] || $gitclone https://github.com/KhronosGroup/Vulkan-Headers
|
2023-08-20 13:09:09 +00:00
|
|
|
builddir Vulkan-Headers
|
|
|
|
cmake .. "${cmake_args[@]}"
|
|
|
|
makeplusinstall
|
|
|
|
popd
|
2023-08-20 14:08:46 +00:00
|
|
|
}
|
|
|
|
_vulkan_headers_mark=include/vulkan/vulkan.h
|
2023-08-20 13:09:09 +00:00
|
|
|
|
2023-08-20 14:08:46 +00:00
|
|
|
_vulkan_loader () {
|
2024-02-26 02:13:03 +00:00
|
|
|
[ -d Vulkan-Loader ] || $gitclone https://github.com/KhronosGroup/Vulkan-Loader
|
2023-08-20 13:09:09 +00:00
|
|
|
builddir Vulkan-Loader
|
2024-05-18 18:36:02 +00:00
|
|
|
cmake .. "${cmake_args[@]}" -DUSE_GAS=ON
|
2023-08-20 13:09:09 +00:00
|
|
|
makeplusinstall
|
|
|
|
popd
|
2023-08-20 14:08:46 +00:00
|
|
|
}
|
|
|
|
_vulkan_loader_mark=lib/libvulkan-1.dll.a
|
2023-08-20 13:09:09 +00:00
|
|
|
|
2023-08-20 14:08:46 +00:00
|
|
|
_libplacebo () {
|
2022-06-06 18:43:35 +00:00
|
|
|
[ -d libplacebo ] || $gitclone https://code.videolan.org/videolan/libplacebo.git
|
|
|
|
builddir libplacebo
|
2023-08-20 13:09:09 +00:00
|
|
|
meson setup .. --cross-file "$prefix_dir/crossfile" \
|
2023-08-20 15:12:35 +00:00
|
|
|
-Ddemos=false -D{opengl,d3d11}=enabled
|
2022-09-27 13:13:02 +00:00
|
|
|
makeplusinstall
|
2022-06-06 18:43:35 +00:00
|
|
|
popd
|
2023-08-20 14:08:46 +00:00
|
|
|
}
|
|
|
|
_libplacebo_mark=lib/libplacebo.dll.a
|
2022-06-06 18:43:35 +00:00
|
|
|
|
2023-08-20 14:08:46 +00:00
|
|
|
_freetype () {
|
2024-03-02 02:44:53 +00:00
|
|
|
local ver=2.13.2
|
2023-06-13 07:59:35 +00:00
|
|
|
gettar "https://mirror.netcologne.de/savannah/freetype/freetype-${ver}.tar.xz"
|
2020-06-07 21:31:55 +00:00
|
|
|
builddir freetype-${ver}
|
2023-08-20 14:08:46 +00:00
|
|
|
meson setup .. --cross-file "$prefix_dir/crossfile"
|
2020-06-07 21:31:55 +00:00
|
|
|
makeplusinstall
|
|
|
|
popd
|
2023-08-20 14:08:46 +00:00
|
|
|
}
|
|
|
|
_freetype_mark=lib/libfreetype.dll.a
|
2020-06-07 21:31:55 +00:00
|
|
|
|
2023-08-20 14:08:46 +00:00
|
|
|
_fribidi () {
|
2024-05-03 21:44:51 +00:00
|
|
|
local ver=1.0.14
|
2020-06-07 21:31:55 +00:00
|
|
|
gettar "https://github.com/fribidi/fribidi/releases/download/v${ver}/fribidi-${ver}.tar.xz"
|
|
|
|
builddir fribidi-${ver}
|
2023-08-20 14:08:46 +00:00
|
|
|
meson setup .. --cross-file "$prefix_dir/crossfile" \
|
2022-09-27 13:13:02 +00:00
|
|
|
-D{tests,docs}=false
|
2020-06-07 21:31:55 +00:00
|
|
|
makeplusinstall
|
|
|
|
popd
|
2023-08-20 14:08:46 +00:00
|
|
|
}
|
|
|
|
_fribidi_mark=lib/libfribidi.dll.a
|
2020-06-07 21:31:55 +00:00
|
|
|
|
2023-08-20 14:08:46 +00:00
|
|
|
_harfbuzz () {
|
2024-05-03 21:44:51 +00:00
|
|
|
local ver=8.4.0
|
2020-11-15 16:29:06 +00:00
|
|
|
gettar "https://github.com/harfbuzz/harfbuzz/releases/download/${ver}/harfbuzz-${ver}.tar.xz"
|
|
|
|
builddir harfbuzz-${ver}
|
2023-08-20 14:08:46 +00:00
|
|
|
meson setup .. --cross-file "$prefix_dir/crossfile" \
|
2022-09-27 13:13:02 +00:00
|
|
|
-Dtests=disabled
|
2020-11-15 16:29:06 +00:00
|
|
|
makeplusinstall
|
|
|
|
popd
|
2023-08-20 14:08:46 +00:00
|
|
|
}
|
|
|
|
_harfbuzz_mark=lib/libharfbuzz.dll.a
|
2020-11-15 16:29:06 +00:00
|
|
|
|
2023-08-20 14:08:46 +00:00
|
|
|
_libass () {
|
2020-06-07 21:31:55 +00:00
|
|
|
[ -d libass ] || $gitclone https://github.com/libass/libass.git
|
|
|
|
builddir libass
|
2024-05-18 21:04:17 +00:00
|
|
|
meson setup .. --cross-file "$prefix_dir/crossfile" -Ddefault_library=shared
|
2020-06-07 21:31:55 +00:00
|
|
|
makeplusinstall
|
|
|
|
popd
|
2023-08-20 14:08:46 +00:00
|
|
|
}
|
|
|
|
_libass_mark=lib/libass.dll.a
|
2020-06-07 21:31:55 +00:00
|
|
|
|
2023-08-20 14:08:46 +00:00
|
|
|
_luajit () {
|
|
|
|
[ -d LuaJIT ] || $gitclone https://github.com/LuaJIT/LuaJIT.git
|
2023-07-24 12:03:19 +00:00
|
|
|
pushd LuaJIT
|
2023-08-20 14:08:46 +00:00
|
|
|
local hostcc="ccache cc"
|
|
|
|
local flags=
|
2023-07-24 12:03:19 +00:00
|
|
|
[[ "$TARGET" == "i686-"* ]] && { hostcc="$hostcc -m32"; flags=XCFLAGS=-DLUAJIT_NO_UNWIND; }
|
2022-09-27 13:13:02 +00:00
|
|
|
make TARGET_SYS=Windows clean
|
2023-07-23 10:36:38 +00:00
|
|
|
make TARGET_SYS=Windows HOST_CC="$hostcc" CROSS="ccache $TARGET-" \
|
2023-07-24 12:03:19 +00:00
|
|
|
BUILDMODE=static $flags amalg
|
2020-06-30 17:40:22 +00:00
|
|
|
make DESTDIR="$prefix_dir" INSTALL_DEP= FILE_T=luajit.exe install
|
2020-06-07 21:31:55 +00:00
|
|
|
popd
|
2023-08-20 14:08:46 +00:00
|
|
|
}
|
|
|
|
_luajit_mark=lib/libluajit-5.1.a
|
|
|
|
|
2024-03-02 02:22:16 +00:00
|
|
|
for x in iconv zlib shaderc spirv-cross nv-headers dav1d; do
|
2023-08-20 15:12:35 +00:00
|
|
|
build_if_missing $x
|
|
|
|
done
|
|
|
|
if [[ "$TARGET" != "i686-"* ]]; then
|
|
|
|
build_if_missing vulkan-headers
|
|
|
|
build_if_missing vulkan-loader
|
|
|
|
fi
|
2023-08-28 19:37:06 +00:00
|
|
|
for x in ffmpeg libplacebo freetype fribidi harfbuzz libass luajit; do
|
2023-08-20 14:08:46 +00:00
|
|
|
build_if_missing $x
|
|
|
|
done
|
2020-06-07 21:31:55 +00:00
|
|
|
|
|
|
|
## mpv
|
|
|
|
|
2022-09-27 13:13:02 +00:00
|
|
|
[ -z "$1" ] && exit 0
|
2021-11-07 19:29:11 +00:00
|
|
|
|
2022-09-27 13:13:02 +00:00
|
|
|
CFLAGS+=" -I'$prefix_dir/include'"
|
|
|
|
LDFLAGS+=" -L'$prefix_dir/lib'"
|
|
|
|
export CFLAGS LDFLAGS
|
2023-08-20 13:09:09 +00:00
|
|
|
build=mingw_build
|
|
|
|
rm -rf $build
|
2022-09-27 13:13:02 +00:00
|
|
|
|
2023-08-20 13:09:09 +00:00
|
|
|
meson setup $build --cross-file "$prefix_dir/crossfile" \
|
2023-09-18 13:42:01 +00:00
|
|
|
--werror \
|
|
|
|
-Dc_args="-Wno-error=deprecated -Wno-error=deprecated-declarations" \
|
2022-11-12 14:27:07 +00:00
|
|
|
--buildtype debugoptimized \
|
2024-06-05 19:20:27 +00:00
|
|
|
--force-fallback-for=mujs \
|
|
|
|
-Dmujs:werror=false \
|
|
|
|
-Dmujs:default_library=static \
|
2024-05-21 20:52:02 +00:00
|
|
|
-D{libmpv,tests}=true -Dlua=luajit \
|
2024-06-05 19:20:27 +00:00
|
|
|
-D{shaderc,spirv-cross,d3d11,javascript}=enabled
|
2022-11-12 14:27:07 +00:00
|
|
|
|
2023-08-20 13:09:09 +00:00
|
|
|
meson compile -C $build
|
2022-09-27 13:32:21 +00:00
|
|
|
|
|
|
|
if [ "$2" = pack ]; then
|
2023-08-20 14:37:27 +00:00
|
|
|
mkdir -p artifact/tmp
|
2022-09-27 13:32:21 +00:00
|
|
|
echo "Copying:"
|
2023-10-05 19:07:08 +00:00
|
|
|
cp -pv $build/mpv.com $build/mpv.exe artifact/
|
2023-08-20 14:37:27 +00:00
|
|
|
# copy everything we can get our hands on
|
|
|
|
cp -p "$prefix_dir/bin/"*.dll artifact/tmp/
|
2022-09-27 13:32:21 +00:00
|
|
|
shopt -s nullglob
|
|
|
|
for file in /usr/lib/gcc/$TARGET/*-posix/*.dll /usr/$TARGET/lib/*.dll; do
|
2023-08-20 14:37:27 +00:00
|
|
|
cp -p "$file" artifact/tmp/
|
2022-09-27 13:32:21 +00:00
|
|
|
done
|
2023-08-20 14:37:27 +00:00
|
|
|
# pick DLLs we need
|
|
|
|
pushd artifact/tmp
|
|
|
|
dlls=(
|
|
|
|
libgcc_*.dll lib{ssp,stdc++,winpthread}-[0-9]*.dll # compiler runtime
|
|
|
|
av*.dll sw*.dll lib{ass,freetype,fribidi,harfbuzz,iconv,placebo}-[0-9]*.dll
|
2024-03-02 02:22:16 +00:00
|
|
|
lib{shaderc_shared,spirv-cross-c-shared,dav1d}.dll zlib1.dll
|
2023-08-20 14:37:27 +00:00
|
|
|
)
|
2024-03-21 00:00:00 +00:00
|
|
|
if [[ -f vulkan-1.dll ]]; then
|
|
|
|
dlls+=(vulkan-1.dll)
|
|
|
|
fi
|
2023-08-20 14:37:27 +00:00
|
|
|
mv -v "${dlls[@]}" ..
|
|
|
|
popd
|
|
|
|
|
2022-09-27 13:32:21 +00:00
|
|
|
echo "Archiving:"
|
|
|
|
pushd artifact
|
2023-08-20 14:37:27 +00:00
|
|
|
rm -rf tmp
|
2022-09-27 13:32:21 +00:00
|
|
|
zip -9r "../mpv-git-$(date +%F)-$(git rev-parse --short HEAD)-${TARGET%%-*}.zip" -- *
|
|
|
|
popd
|
|
|
|
fi
|