htdcx / code-push-go

code-push-server-go cli
MIT License
23 stars 5 forks source link
code-push code-push-server go golang react-native

code-push-go

Code-push-go cli used with code-push-server-go, only support react native

Install

git clone https://github.com/htdcx/code-push-go.git
cd code-push-go

#MacOS build GOOS:windows,darwin GOARCH:amd64,arm64
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o code-push-go(.exe) main.go

#Windows build
set GOARCH=amd64 #GOARCH:amd64,arm64
set GOOS=linux #windows,darwin
go build -o code-push-go(.exe) main.go
mv code-push-go(.exe) <You project>

#Linux
chmod +x code-push-go

#Login
./code-push-go login -u <userName> -p <password> -h <serverUrl>

Use

./code-push-go app create_app -n <AppName> -os <ios or android>
./code-push-go app create_deployment -n <AppName> -dn <DeploymentName>

#Update react native
./code-push-go create_bundle -t <TargetVersion> -n <AppName> -d <DeploymentName> -p <(*Optional) React native project default:./> --description  <(*Optional) Description default: ""/> --hermes (*Optional)

#More command
./code-push-go

License

MIT License Read