1
0
mirror of https://github.com/QSCTech/zjunet.git synced 2026-01-22 11:44:48 +08:00

Compare commits

..

No commits in common. "89810b80c98ca51b928d4afaa587d0d39927ccf9" and "d601644df290afea0f5c275f03cd834b60fdb395" have entirely different histories.

6 changed files with 4 additions and 29 deletions

View File

@ -1,23 +0,0 @@
image: ubuntu:jammy
stages:
- build
compile:
stage: build
only:
- tags
script:
- sed -i 's|http.*.ubuntu.com|http://mirrors.zju.edu.cn|' /etc/apt/sources.list
- apt-get update && apt-get -y --no-install-recommends install ca-certificates build-essential fakeroot git dpkg-dev rpm python3 python-is-python3 python3-urllib3
- mkdir artifacts
- pushd build
- ./build.sh
- popd
- cp build/debian/*.deb artifacts/
- cp build/openwrt/*.opk artifacts/
- cp build/rpm/*.rpm artifacts/
artifacts:
paths:
- /artifacts

View File

@ -36,7 +36,7 @@ If you meet any problem during or after the installation, check Troubleshooting
2. Run these command.
``` bash
curl https://mirrors.zju.edu.cn/openzjunet/zjumirrors.pgp | sudo tee /etc/apt/trusted.gpg.d/zjumirrors.asc
curl https://mirrors.zju.edu.cn/openzjunet/zjumirrors.pgp | sudo apt-key add -
curl https://mirrors.zju.edu.cn/openzjunet/zjunet.list | sudo tee /etc/apt/sources.list.d/zjunet.list
sudo apt-get update
sudo apt-get install zjunet

View File

@ -39,7 +39,7 @@
2. 依次输入并执行下列命令:
``` bash
curl https://mirrors.zju.edu.cn/openzjunet/zjumirrors.pgp | sudo tee /etc/apt/trusted.gpg.d/zjumirrors.asc
curl https://mirrors.zju.edu.cn/openzjunet/zjumirrors.pgp | sudo apt-key add -
curl https://mirrors.zju.edu.cn/openzjunet/zjunet.list | sudo tee /etc/apt/sources.list.d/zjunet.list
sudo apt-get update
sudo apt-get install zjunet

View File

@ -1 +1 @@
0.3.3-6
0.3.3-5

View File

@ -44,7 +44,7 @@ EOF
# dpkg-deb
find ./debian -type d | xargs chmod 755
fakeroot dpkg-deb -Zxz --build debian
fakeroot dpkg-deb --build debian
mv debian.deb zjunet_${VERSION}_all.deb
# remove debian/

View File

@ -49,7 +49,6 @@ if [ "${devs_count}" -eq "0" ]; then
ip_route_del 210.32.160.0/21
ip_route_del 210.32.168.0/22
ip_route_del 210.32.172.0/23
ip_route_del 210.32.174.0/24
ip_route_del 210.32.176.0/20
ip_route_del 222.205.0.0/17
ip_route_del 10.5.1.0/24
@ -88,7 +87,6 @@ case "$gateway" in
ip route replace 210.32.160.0/21 via $gateway
ip route replace 210.32.168.0/22 via $gateway
ip route replace 210.32.172.0/23 via $gateway
ip route replace 210.32.174.0/24 via $gateway
ip route replace 210.32.176.0/20 via $gateway
ip route replace 222.205.0.0/17 via $gateway
;;