Skip to content

Commit

Permalink
Write the ipa link to ipalink.txt file
Browse files Browse the repository at this point in the history
  • Loading branch information
John Bryan Sazon committed Apr 27, 2018
1 parent 75f1015 commit e6f4b6c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmd/nexus.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,18 @@ var nexusCmd = &cobra.Command{
}
for _, v := range assets {
log.Println("file uploaded:", v)
// write the index.html file (the ota link) to a file
// write the index.html file (the ota link) to a file to gotalink.txt
if strings.Contains(v, "index.html") {
if err := ioutil.WriteFile("gotalink.txt", []byte(v), 0644); err != nil {
log.Fatal(err)
}
}
// write the ipa download link to a file ipalink.txt
if strings.Contains(v, ".ipa") {
if err := ioutil.WriteFile("ipalink.txt", []byte(v), 0644); err != nil {
log.Fatal(err)
}
}
}
},
}
Expand Down
1 change: 1 addition & 0 deletions ipalink.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
http://localhost:8081/repository/site/testing/1.0.0/4/sample.ipa

0 comments on commit e6f4b6c

Please sign in to comment.