Skip to content

Commit 29934ed

Browse files
committed
Add new Impl
1 parent 8d93435 commit 29934ed

23 files changed

+688
-11435
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ _testmain.go
2424

2525
*.exe
2626
*.exe~
27+
28+
AutoChange12306CDN

.goreleaser.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
before:
2+
hooks:
3+
- go generate ./...
4+
project_name: AutoChange12306CDN
5+
builds:
6+
- env:
7+
- CGO_ENABLED=0
8+
ldflags:
9+
- "-s -w"
10+
binary: AutoChange12306CDN
11+
goos:
12+
- windows
13+
- darwin
14+
- linux
15+
goarch:
16+
- 386
17+
- amd64
18+
hooks:
19+
post: ./upx.sh
20+
archive:
21+
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}_v{{ .Arm }}{{ end }}'
22+
format: tar.gz
23+
format_overrides:
24+
- goos: windows
25+
format: zip
26+
wrap_in_directory: true
27+
files:
28+
- iprange.conf
29+
replacements:
30+
amd64: 64-bit
31+
386: 32-bit
32+
arm: ARM
33+
arm64: ARM64
34+
darwin: macOS
35+
linux: Linux
36+
windows: Windows
37+
openbsd: OpenBSD
38+
netbsd: NetBSD
39+
freebsd: FreeBSD
40+
release:
41+
github:
42+
owner: cxjava
43+
name: AutoChange12306CDN
44+
draft: true
45+
prerelease: true
46+
name_template: "{{.ProjectName}}-v{{.Version}}-{{.ShortCommit}}"

.goxc.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

.travis.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
language: go
2+
sudo: true
3+
go:
4+
- 1.11.x
5+
6+
env:
7+
global:
8+
- GORELEASER_VERSION=0.93.2
9+
- ARIANG_VERSION="1.0.0"
10+
- UPXVER="3.94"
11+
before_install:
12+
- wget https://github.com/mayswind/AriaNg/releases/download/${ARIANG_VERSION}/AriaNg-${ARIANG_VERSION}.zip && unzip -q AriaNg-${ARIANG_VERSION}.zip -d AriaNg
13+
- wget https://github.com/goreleaser/goreleaser/releases/download/v${GORELEASER_VERSION}/goreleaser_amd64.deb
14+
- sudo dpkg -i goreleaser_amd64.deb
15+
- |
16+
if [[ ! -f "upx/${UPXVER}/upx" ]]
17+
then
18+
echo "Installing upx .."
19+
curl -OL "https://github.com/upx/upx/releases/download/v${UPXVER}/upx-${UPXVER}-amd64_linux.tar.xz"
20+
tar xvf "upx-${UPXVER}-amd64_linux.tar.xz"
21+
mkdir -p upx
22+
mv "upx-${UPXVER}-amd64_linux" "upx/${UPXVER}"
23+
fi
24+
- export PATH="${TRAVIS_BUILD_DIR}/upx/${UPXVER}/:${PATH}"
25+
- upx --version | grep -E '^upx'
26+
- chmod +x upx.sh
27+
28+
script:
29+
- goreleaser --skip-validate --skip-sign --debug
30+
31+
branches:
32+
only:
33+
- master

12306.zip

-5.62 MB
Binary file not shown.

1MiaoPiao.user.js

Lines changed: 0 additions & 102 deletions
This file was deleted.

MiaoPiao.user.js

Lines changed: 0 additions & 122 deletions
This file was deleted.

build.bat

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)