Skip to content

htdcx/code-push-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

#Change password
./code-push-go change_password

#More command
./code-push-go

License

MIT License Read