Update wide.go

This commit is contained in:
khjde1207 2017-03-27 11:00:15 +09:00 committed by GitHub
parent b33638dc06
commit 4b1cdbb249
1 changed files with 8 additions and 2 deletions

View File

@ -138,8 +138,14 @@ func initUsers() {
} }
// Compatibility upgrade (1.5.3): https://github.com/b3log/wide/issues/308 // Compatibility upgrade (1.5.3): https://github.com/b3log/wide/issues/308
if "" == user.GoBuildArgs { if "" == user.GoBuildArgsforLinux {
user.GoBuildArgs = "-i" user.GoBuildArgsforLinux = "-i"
}
if "" == user.GoBuildArgsforWindows {
user.GoBuildArgsforWindows = "-i"
}
if "" == user.GoBuildArgsforDarwin {
user.GoBuildArgsforDarwin = "-i"
} }
Users = append(Users, user) Users = append(Users, user)