mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-24 07:45:28 +00:00
Enhanced package and build to by default not include any source code
This commit is contained in:
@@ -76,8 +76,11 @@ func packageApp(c *model.CommandConfig) {
|
||||
|
||||
// Build expects the command the build to contain the proper data
|
||||
c.Build.ImportPath = appImportPath
|
||||
c.Build.Mode = mode
|
||||
if len(c.Package.Mode) >= 0 {
|
||||
c.Build.Mode = c.Package.Mode
|
||||
}
|
||||
c.Build.TargetPath = tmpDir
|
||||
c.Build.CopySource = c.Package.CopySource
|
||||
buildApp(c)
|
||||
|
||||
// Create the zip file.
|
||||
|
||||
Reference in New Issue
Block a user