1 Star 0 Fork 0

qinfendeyuyu/zsign

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
INSTALL.sh 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
Anosh Khiyam 提交于 2021-10-14 17:02 . added MacOs
#!/bin/bash
MacOs=darwin
CentOs=yum
Ubuntu=apt-get
CmakeV=3.21.3
# Compile on MacOs
# Detect Os if it is MacOs
if [[ "$OSTYPE" =~ ^$MacOs ]]; then
# Dependencies
brew install zip unzip &&
brew install openssl cmake
# Compile zsign usign cmake
mkdir build; cd build &&
cmake .. &&
make
# Compile on CentOS
# Detect OS if it is CentOS
elif [ -x /usr/bin/$CentOs ]; then
# Dependencies
yum install openssl-devel -y;
yum install wget zip unzip -y &&
yum group install "Development Tools" -y &&
# Installing Cmake latest
wget -qO- "https://cmake.org/files/v3.21/cmake-$CmakeV-linux-x86_64.tar.gz" | \
tar --strip-components=1 -xz -C /usr/local &&
# Compile zsign using cmake
mkdir build; cd build &&
cmake .. &&
make
# Compile on Ubuntu
# Detect OS if it is ubuntu
elif [ -x /usr/bin/$Ubuntu ]; then
# Dependencies
sudo apt-get install wget zip unzip build-essential checkinstall zlib1g-dev libssl-dev -y &&
# Installing Cmake latest
wget -qO- "https://cmake.org/files/v3.21/cmake-$CmakeV-linux-x86_64.tar.gz" | \
tar --strip-components=1 -xz -C /usr/local &&
# Compile zsign using cmake
mkdir build; cd build &&
cmake .. &&
make
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yangqingming/zsign.git
git@gitee.com:yangqingming/zsign.git
yangqingming
zsign
zsign
master

搜索帮助