Skip to content

Commit

Permalink
Include the plist file in the build directory in nexus
Browse files Browse the repository at this point in the history
  • Loading branch information
John Bryan Sazon committed Apr 25, 2018
1 parent e26b291 commit 516a5f7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions nexus/nexus_upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ func (n *Nexus) getRepoURL() string {
// NexusUploadAssets uploads the generated files by the parser package along with the ipa or apk file
func (n *Nexus) NexusUploadAssets(app *parser.MobileApp, dir string) ([]string, error) {
// create the site path names and assume the url before uploaded for templating
appIconPath := app.Version + "/" + app.Build + "/" + parser.AppIconFile
appSitePath := app.Version + "/" + app.Build + "/" + filepath.Base(app.File)
appIndexHTMLSitePath := app.Version + "/" + app.Build + "/" + parser.IndexHTMLFile
buildDir := app.Version + "/" + app.Build
appIconPath := buildDir + "/" + parser.AppIconFile
appSitePath := buildDir + "/" + filepath.Base(app.File)
appIndexHTMLSitePath := buildDir + "/" + parser.IndexHTMLFile
app.DownloadURL = n.getRepoURL() + "/" + dir + "/" + appSitePath

// default directory of assets
Expand All @@ -68,7 +69,7 @@ func (n *Nexus) NexusUploadAssets(app *parser.MobileApp, dir string) ([]string,
var appPlistSitePath string
if app.IsIOS() {
assetsDir = parser.IOSAssetsDir
appPlistSitePath = app.Version + "/" + parser.IOSPlistFile
appPlistSitePath = buildDir + "/" + parser.IOSPlistFile
app.PlistURL = htmltemp.URL(n.getRepoURL() + "/" + dir + "/" + appPlistSitePath)
}

Expand Down

0 comments on commit 516a5f7

Please sign in to comment.