Skip to content

Commit f713161

Browse files
authored
Merge pull request #157 from dgw/makefile-bundle-fix
Makefile: Fix app bundle dependency in zip build target
2 parents 118cd8b + cf3972c commit f713161

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ endif
1313
build: $(release)
1414

1515
$(shell mkdir -p build)
16-
build/factorio-server-manager-%.zip: app/bundle.js factorio-server-manager-%
16+
build/factorio-server-manager-%.zip: app/bundle factorio-server-manager-%
1717
@echo "Packaging Build - $@"
1818
@cp -r app/ factorio-server-manager/
1919
@cp conf.json.example factorio-server-manager/conf.json

src/handlers.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func CreateSaveHandler(w http.ResponseWriter, r *http.Request) {
204204
}
205205
}
206206

207-
// Returns last lines of the factorio-current.log file
207+
// LogTail returns last lines of the factorio-current.log file
208208
func LogTail(w http.ResponseWriter, r *http.Request) {
209209
var err error
210210
resp := JSONResponse{
@@ -229,7 +229,7 @@ func LogTail(w http.ResponseWriter, r *http.Request) {
229229
}
230230
}
231231

232-
// Return JSON response of config.ini file
232+
// LoadConfig returns JSON response of config.ini file
233233
func LoadConfig(w http.ResponseWriter, r *http.Request) {
234234
var err error
235235
resp := JSONResponse{
@@ -699,7 +699,7 @@ func RemoveUser(w http.ResponseWriter, r *http.Request) {
699699
}
700700
}
701701

702-
// Return JSON response of server-settings.json file
702+
// GetServerSettings returns JSON response of server-settings.json file
703703
func GetServerSettings(w http.ResponseWriter, r *http.Request) {
704704
resp := JSONResponse{
705705
Success: false,

src/mods_handler.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func listInstalledModsHandler(w http.ResponseWriter, r *http.Request) {
6262
}
6363
}
6464

65-
// Returns JSON response with success or error-message
65+
// LoginFactorioModPortal returns JSON response with success or error-message
6666
func LoginFactorioModPortal(w http.ResponseWriter, r *http.Request) {
6767
var err error
6868
resp := JSONResponse{
@@ -147,7 +147,7 @@ func LogoutFactorioModPortalHandler(w http.ResponseWriter, r *http.Request) {
147147
}
148148
}
149149

150-
//Returns JSON response with the found mods
150+
//ModPortalSearchHandler returns JSON response with the found mods
151151
func ModPortalSearchHandler(w http.ResponseWriter, r *http.Request) {
152152
var err error
153153
resp := JSONResponse{
@@ -180,7 +180,7 @@ func ModPortalSearchHandler(w http.ResponseWriter, r *http.Request) {
180180
}
181181
}
182182

183-
//Returns JSON response with the mod details
183+
//ModPortalDetailsHandler returns JSON response with the mod details
184184
func ModPortalDetailsHandler(w http.ResponseWriter, r *http.Request) {
185185
var err error
186186
resp := JSONResponse{
@@ -567,7 +567,7 @@ func DownloadModsHandler(w http.ResponseWriter, r *http.Request) {
567567
writerHeader.Set("Content-Disposition", fmt.Sprintf("attachment; filename=\"%s\"", "all_installed_mods.zip"))
568568
}
569569

570-
//Returns JSON response with the found mods
570+
//LoadModsFromSaveHandler returns JSON response with the found mods
571571
func LoadModsFromSaveHandler(w http.ResponseWriter, r *http.Request) {
572572
var err error
573573
resp := JSONResponse{

0 commit comments

Comments
 (0)