Skip to content

Commit

Permalink
Merge pull request #214 from iahung/master
Browse files Browse the repository at this point in the history
  • Loading branch information
objeck authored Apr 22, 2023
2 parents 0ed3165 + 65ddda8 commit c229868
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 0 deletions.
56 changes: 56 additions & 0 deletions core/release/make_standalone_msys2-clang.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#!/bin/sh

# copy dlls
cp /clang64/bin/libc++.dll deploy-msys2-clang/bin
cp /clang64/bin/libunwind.dll deploy-msys2-clang/bin
cp /clang64/bin/libwinpthread-1.dll deploy-msys2-clang/bin
cp /clang64/bin/zlib1.dll deploy-msys2-clang/bin
cp /clang64/bin/libcrypto-3-x64.dll deploy-msys2-clang/bin
cp /clang64/bin/libssl-3-x64.dll deploy-msys2-clang/bin
cp /clang64/bin/libodbc-2.dll deploy-msys2-clang/bin
cp /clang64/bin/libiconv-2.dll deploy-msys2-clang/bin
cp /clang64/bin/libltdl-7.dll deploy-msys2-clang/bin
cp /clang64/bin/SDL2.dll deploy-msys2-clang/bin
cp /clang64/bin/SDL2_image.dll deploy-msys2-clang/bin
cp /clang64/bin/SDL2_mixer.dll deploy-msys2-clang/bin
cp /clang64/bin/SDL2_ttf.dll deploy-msys2-clang/bin
cp /clang64/bin/libjpeg-8.dll deploy-msys2-clang/bin
cp /clang64/bin/libjxl.dll deploy-msys2-clang/bin
cp /clang64/bin/libpng16-16.dll deploy-msys2-clang/bin
cp /clang64/bin/libtiff-6.dll deploy-msys2-clang/bin
cp /clang64/bin/libwebp-7.dll deploy-msys2-clang/bin
cp /clang64/bin/libmpg123-0.dll deploy-msys2-clang/bin
cp /clang64/bin/libopusfile-0.dll deploy-msys2-clang/bin
cp /clang64/bin/libfreetype-6.dll deploy-msys2-clang/bin
cp /clang64/bin/libharfbuzz-0.dll deploy-msys2-clang/bin
cp /clang64/bin/libbrotlidec.dll deploy-msys2-clang/bin
cp /clang64/bin/libbrotlienc.dll deploy-msys2-clang/bin
cp /clang64/bin/libhwy.dll deploy-msys2-clang/bin
cp /clang64/bin/liblcms2-2.dll deploy-msys2-clang/bin
cp /clang64/bin/libdeflate.dll deploy-msys2-clang/bin
cp /clang64/bin/libjbig-0.dll deploy-msys2-clang/bin
cp /clang64/bin/libLerc.dll deploy-msys2-clang/bin
cp /clang64/bin/liblzma-5.dll deploy-msys2-clang/bin
cp /clang64/bin/libzstd.dll deploy-msys2-clang/bin
cp /clang64/bin/libsharpyuv-0.dll deploy-msys2-clang/bin
cp /clang64/bin/libogg-0.dll deploy-msys2-clang/bin
cp /clang64/bin/libopus-0.dll deploy-msys2-clang/bin
cp /clang64/bin/libbz2-1.dll deploy-msys2-clang/bin
cp /clang64/bin/libglib-2.0-0.dll deploy-msys2-clang/bin
cp /clang64/bin/libgraphite2.dll deploy-msys2-clang/bin
cp /clang64/bin/libintl-8.dll deploy-msys2-clang/bin
cp /clang64/bin/libbrotlicommon.dll deploy-msys2-clang/bin
cp /clang64/bin/libpcre2-8-0.dll deploy-msys2-clang/bin

# deploy
if [ ! -z "$2" ] && [ "$2" = "deploy" ]; then
rm -rf ~/Desktop/objeck*
cp -rf ../release/deploy-msys2-clang ~/Desktop/objeck-lang
cd ~/Desktop

rm -f objeck.tar objeck.tgz
tar cf objeck.tar objeck-lang
gzip objeck.tar

mv objeck.tar.gz objeck-utils-msys2-x64_0.0.0.tgz
fi
56 changes: 56 additions & 0 deletions core/release/make_standalone_msys2-ucrt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#!/bin/sh

# copy dlls
cp /ucrt64/bin/libgcc_s_seh-1.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libstdc++-6.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libwinpthread-1.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/zlib1.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libcrypto-3-x64.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libssl-3-x64.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libodbc-2.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libiconv-2.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libltdl-7.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/SDL2.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/SDL2_image.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/SDL2_mixer.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/SDL2_ttf.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libjpeg-8.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libjxl.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libpng16-16.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libtiff-6.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libwebp-7.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libmpg123-0.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libopusfile-0.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libfreetype-6.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libharfbuzz-0.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libbrotlidec.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libbrotlienc.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libhwy.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/liblcms2-2.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libdeflate.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libjbig-0.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libLerc.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/liblzma-5.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libzstd.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libsharpyuv-0.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libogg-0.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libopus-0.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libbz2-1.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libglib-2.0-0.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libgraphite2.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libintl-8.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libbrotlicommon.dll deploy-msys2-ucrt/bin
cp /ucrt64/bin/libpcre2-8-0.dll deploy-msys2-ucrt/bin

# deploy
if [ ! -z "$2" ] && [ "$2" = "deploy" ]; then
rm -rf ~/Desktop/objeck*
cp -rf ../release/deploy-msys2-ucrt ~/Desktop/objeck-lang
cd ~/Desktop

rm -f objeck.tar objeck.tgz
tar cf objeck.tar objeck-lang
gzip objeck.tar

mv objeck.tar.gz objeck-utils-msys2-x64_0.0.0.tgz
fi

0 comments on commit c229868

Please sign in to comment.