mirror of
https://github.com/MetaCubeX/subconverter.git
synced 2025-11-04 18:19:42 +08:00
Run with sudo when building for macOS
This commit is contained in:
parent
670544cfb1
commit
73da1a87ad
@ -14,49 +14,50 @@ brew reinstall rapidjson zlib pcre2 pkgconfig
|
|||||||
git clone https://github.com/jbeder/yaml-cpp --depth=1
|
git clone https://github.com/jbeder/yaml-cpp --depth=1
|
||||||
cd yaml-cpp
|
cd yaml-cpp
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DYAML_CPP_BUILD_TESTS=OFF -DYAML_CPP_BUILD_TOOLS=OFF . > /dev/null
|
cmake -DCMAKE_BUILD_TYPE=Release -DYAML_CPP_BUILD_TESTS=OFF -DYAML_CPP_BUILD_TOOLS=OFF . > /dev/null
|
||||||
make install -j8 > /dev/null
|
make -j6 > /dev/null
|
||||||
|
sudo make install > /dev/null
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
git clone https://github.com/ftk/quickjspp --depth=1
|
git clone https://github.com/ftk/quickjspp --depth=1
|
||||||
cd quickjspp
|
cd quickjspp
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release .
|
cmake -DCMAKE_BUILD_TYPE=Release .
|
||||||
make quickjs -j8
|
make quickjs -j6 > /dev/null
|
||||||
install -d /usr/local/lib/quickjs/
|
sudo install -d /usr/local/lib/quickjs/
|
||||||
install -m644 quickjs/libquickjs.a /usr/local/lib/quickjs/
|
sudo install -m644 quickjs/libquickjs.a /usr/local/lib/quickjs/
|
||||||
install -d /usr/local/include/quickjs/
|
sudo install -d /usr/local/include/quickjs/
|
||||||
install -m644 quickjs/quickjs.h quickjs/quickjs-libc.h /usr/local/include/quickjs/
|
sudo install -m644 quickjs/quickjs.h quickjs/quickjs-libc.h /usr/local/include/quickjs/
|
||||||
install -m644 quickjspp.hpp /usr/local/include/
|
sudo install -m644 quickjspp.hpp /usr/local/include/
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
git clone https://github.com/PerMalmberg/libcron --depth=1
|
git clone https://github.com/PerMalmberg/libcron --depth=1
|
||||||
cd libcron
|
cd libcron
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release .
|
cmake -DCMAKE_BUILD_TYPE=Release .
|
||||||
make libcron install -j8
|
make libcron -j6
|
||||||
install -m644 libcron/out/Release/liblibcron.a /usr/local/lib/
|
sudo install -m644 libcron/out/Release/liblibcron.a /usr/local/lib/
|
||||||
install -d /usr/local/include/libcron/
|
sudo install -d /usr/local/include/libcron/
|
||||||
install -m644 libcron/include/libcron/* /usr/local/include/libcron/
|
sudo install -m644 libcron/include/libcron/* /usr/local/include/libcron/
|
||||||
install -d /usr/local/include/date/
|
sudo install -d /usr/local/include/date/
|
||||||
install -m644 libcron/externals/date/include/date/* /usr/local/include/date/
|
sudo install -m644 libcron/externals/date/include/date/* /usr/local/include/date/
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
git clone https://github.com/ToruNiina/toml11 --depth=1
|
git clone https://github.com/ToruNiina/toml11 --depth=1
|
||||||
cd toml11
|
cd toml11
|
||||||
cmake -DCMAKE_CXX_STANDARD=11 .
|
cmake -DCMAKE_CXX_STANDARD=11 .
|
||||||
make install -j4
|
sudo make install -j6 > /dev/null
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
cp /usr/local/opt/zlib/lib/libz.a .
|
cp /usr/local/opt/zlib/lib/libz.a .
|
||||||
cp /usr/local/lib/libpcre2-8.a .
|
cp /usr/local/lib/libpcre2-8.a .
|
||||||
|
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release .
|
cmake -DCMAKE_BUILD_TYPE=Release .
|
||||||
make -j8
|
make -j6
|
||||||
rm subconverter
|
rm subconverter
|
||||||
# shellcheck disable=SC2046
|
# shellcheck disable=SC2046
|
||||||
c++ -Xlinker -unexported_symbol -Xlinker "*" -o base/subconverter -framework CoreFoundation -framework Security $(find CMakeFiles/subconverter.dir/src/ -name "*.o") $(find . -name "*.a") -lcurl -O3
|
c++ -Xlinker -unexported_symbol -Xlinker "*" -o base/subconverter -framework CoreFoundation -framework Security $(find CMakeFiles/subconverter.dir/src/ -name "*.o") $(find . -name "*.a") -lcurl -O3
|
||||||
|
|
||||||
python -m ensurepip
|
python -m ensurepip
|
||||||
python -m pip install gitpython
|
sudo python -m pip install gitpython
|
||||||
python scripts/update_rules.py -c scripts/rules_config.conf
|
python scripts/update_rules.py -c scripts/rules_config.conf
|
||||||
|
|
||||||
cd base
|
cd base
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user