Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cxjava/AutoChange12306CDN
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.1
Choose a base ref
...
head repository: cxjava/AutoChange12306CDN
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 15 commits
  • 36 files changed
  • 2 contributors

Commits on Dec 29, 2018

  1. Update README.md

    cxjava authored Dec 29, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    9d9e2e0 View commit details

Commits on Dec 30, 2018

  1. Add new Impl

    cxjava committed Dec 30, 2018
    Copy the full SHA
    29934ed View commit details
  2. Copy the full SHA
    9d44ca9 View commit details
  3. add upx.sh

    cxjava committed Dec 30, 2018
    Copy the full SHA
    e5dc01d View commit details

Commits on Dec 31, 2018

  1. add mitm to https

    cxjava committed Dec 31, 2018
    Copy the full SHA
    da8ebd5 View commit details

Commits on Jan 1, 2019

  1. Copy the full SHA
    157fe16 View commit details

Commits on Apr 20, 2020

  1. Create release.yml

    cxjava authored Apr 20, 2020
    Copy the full SHA
    2ce34d3 View commit details
  2. Create goreleaser.yml

    cxjava authored Apr 20, 2020
    Copy the full SHA
    1d4582e View commit details
  3. add go mod

    cxjava committed Apr 20, 2020
    Copy the full SHA
    893a92d View commit details

Commits on Dec 24, 2020

  1. Delete ca-cert.pem

    cxjava authored Dec 24, 2020
    Copy the full SHA
    5c01063 View commit details
  2. Delete ca-pk.pem

    cxjava authored Dec 24, 2020
    Copy the full SHA
    7ce4166 View commit details

Commits on Dec 11, 2021

  1. Update release.yml

    cxjava authored Dec 11, 2021
    Copy the full SHA
    bd21096 View commit details
  2. Update .goreleaser.yml

    cxjava authored Dec 11, 2021
    Copy the full SHA
    ae54c30 View commit details
  3. Update release.yml

    cxjava authored Dec 11, 2021
    Copy the full SHA
    5323d00 View commit details
  4. Add files via upload

    cxjava authored Dec 11, 2021
    Copy the full SHA
    71769d2 View commit details
Showing with 1,630 additions and 11,448 deletions.
  1. +21 −0 .github/goreleaser.yml
  2. +61 −0 .github/workflows/release.yml
  3. +2 −0 .gitignore
  4. +111 −0 .goreleaser.yml
  5. +0 −10 .goxc.json
  6. +33 −0 .travis.yml
  7. BIN 12306.zip
  8. +0 −102 1MiaoPiao.user.js
  9. +21 −0 LICENSE
  10. +0 −122 MiaoPiao.user.js
  11. +14 −13 README.md
  12. +0 −1 build.bat
  13. +51 −0 cache.go
  14. +43 −0 config.go
  15. +0 −132 config.toml
  16. +0 −288 crack.user.js
  17. +8 −0 go.mod
  18. +4 −0 go.sum
  19. BIN ico.syso
  20. BIN ico/1.ico
  21. +0 −5 ico/build_ico.bat
  22. +0 −9 ico/ico.manifest
  23. BIN ico/ico.syso
  24. +0 −2 ico/图标更新,最近更新图标(UPDATE ICONS) -easyicon.net.url
  25. +506 −0 iprange.conf
  26. +309 −0 keyman.go
  27. +28 −0 listener.go
  28. +0 −8 log.go
  29. +86 −326 main.go
  30. +25 −0 mitmproxy.go
  31. +305 −0 mitmserver.go
  32. +0 −17 seelog.xml
  33. +0 −4,171 servernode.json
  34. +0 −6,223 servernode2.json
  35. +0 −19 station.go
  36. +2 −0 upx.sh
21 changes: 21 additions & 0 deletions .github/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
builds:
- env:
- CGO_ENABLED=0
ldflags:
- -s -w
goos:
- linux
- darwin
- windows
goarch:
- 386
- amd64
- arm
- arm64
goarm:
- 6
- 7
archives:
- format: gz
files:
- none*
61 changes: 61 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Release

on:
workflow_dispatch:
inputs:
upx_version:
description: 'UPX version'
required: true
default: '3.96'

jobs:
release:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
matrix:
go: ["1.17.x"]
os: [ubuntu-latest]
name: Go ${{ matrix.go }} in ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Environment
run: |
go version
go env
# So GoReleaser can generate the changelog properly
- name: Unshallowify the repo clone
run: git fetch --prune --unshallow

- name: Check git tag exist
run: |
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
gitTagExists=$(git tag --points-at HEAD)
if ! [ -n "$gitTagExists" ]; then
echo "no tag, create one."
latesttag=$(git describe --tags `git rev-list --tags --max-count=1`)
echo "latest tag: ${latesttag}"
newtag=$(echo ${latesttag} | awk -F. -v OFS=. 'NF==1{print ++$NF}; NF>1{if(length($NF+1)>length($NF))$(NF-1)++; $NF=sprintf("%0*d", length($NF), ($NF+1)%(10^length($NF))); print}')
echo "new tag: ${newtag}"
git tag $newtag
fi
- name: Installing upx
env:
UPX_VERSION: ${{ github.event.inputs.upx_version }}
run: |
echo "Installing upx .."
curl -OL "https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-amd64_linux.tar.xz"
tar xvf "upx-${UPX_VERSION}-amd64_linux.tar.xz"
cp "upx-${UPX_VERSION}-amd64_linux/upx" "$(go env GOPATH)/bin"
upx --version
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist --skip-validate --skip-sign --debug
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -24,3 +24,5 @@ _testmain.go

*.exe
*.exe~

AutoChange12306CDN
111 changes: 111 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
env:
- GO111MODULE=on

builds:
- id: upx
env:
- CGO_ENABLED=0
ldflags:
- "-s -w"
goos:
- windows
- darwin
- linux
goarch:
- 386
- amd64
- arm
- arm64
- mips
- mipsle
goarm:
- 5
- 6
- 7
gomips:
- hardfloat
- softfloat
ignore:
- goos: darwin
goarch: 386
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
hooks:
post:
- upx "{{ .Path }}"
- id: noupx-freebsd
env:
- CGO_ENABLED=0
ldflags:
- -w -s
goos:
- freebsd
goarch:
- 386
- amd64
- arm
- arm64
- mips
- mipsle
goarm:
- 5
- 6
- 7
gomips:
- hardfloat
- softfloat
- id: noupx-linux-mips64
env:
- CGO_ENABLED=0
ldflags:
- -w -s
goos:
- linux
goarch:
- mips64
- mips64le
gomips:
- hardfloat
- softfloat
- id: noupx-windows-arm
env:
- CGO_ENABLED=0
ldflags:
- -w -s
goos:
- windows
goarch:
- arm
- arm64
goarm:
- 5
- 6
- 7
archives:
- name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}_v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
# - name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
# format: binary
format: tar.gz
files:
- none*
format_overrides:
- goos: windows
format: zip
wrap_in_directory: false
replacements:
amd64: 64-bit
386: 32-bit
arm: ARM
arm64: ARM64
darwin: macOS
linux: Linux
windows: Windows
openbsd: OpenBSD
netbsd: NetBSD
freebsd: FreeBSD
release:
draft: true
prerelease: auto
name_template: "{{.ProjectName}}-v{{.Version}}-{{.Date}}"
10 changes: 0 additions & 10 deletions .goxc.json

This file was deleted.

33 changes: 33 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
language: go
sudo: true
go:
- 1.11.x

env:
global:
- GORELEASER_VERSION=0.93.2
- ARIANG_VERSION="1.0.0"
- UPXVER="3.94"
before_install:
- wget https://github.com/mayswind/AriaNg/releases/download/${ARIANG_VERSION}/AriaNg-${ARIANG_VERSION}.zip && unzip -q AriaNg-${ARIANG_VERSION}.zip -d AriaNg
- wget https://github.com/goreleaser/goreleaser/releases/download/v${GORELEASER_VERSION}/goreleaser_amd64.deb
- sudo dpkg -i goreleaser_amd64.deb
- |
if [[ ! -f "upx/${UPXVER}/upx" ]]
then
echo "Installing upx .."
curl -OL "https://github.com/upx/upx/releases/download/v${UPXVER}/upx-${UPXVER}-amd64_linux.tar.xz"
tar xvf "upx-${UPXVER}-amd64_linux.tar.xz"
mkdir -p upx
mv "upx-${UPXVER}-amd64_linux" "upx/${UPXVER}"
fi
- export PATH="${TRAVIS_BUILD_DIR}/upx/${UPXVER}/:${PATH}"
- upx --version | grep -E '^upx'
- chmod +x upx.sh

script:
- goreleaser --skip-validate --skip-sign --debug

branches:
only:
- master
Binary file removed 12306.zip
Binary file not shown.
102 changes: 0 additions & 102 deletions 1MiaoPiao.user.js

This file was deleted.

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Char

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading