animeic-cd 1 년 전
부모
커밋
8edf4784bf
4개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 3 1
      .gitignore
  2. BIN
      app-uploader
  3. 2 0
      build.sh
  4. 0 4
      utils/zip.go

+ 3 - 1
.gitignore

@@ -2,4 +2,6 @@ dist_electron
 app.json
 logo.png
 package.json
-output
+output
+app-uploader
+app-uploader.exe

BIN
app-uploader


+ 2 - 0
build.sh

@@ -0,0 +1,2 @@
+#!/bin/bash
+CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build .

+ 0 - 4
utils/zip.go

@@ -61,15 +61,12 @@ func walkFunc(rootPath string, zipWriter *zip.Writer) filepath.WalkFunc {
 
 		// Set relative path of a file as the header name.
 		header.Name, err = filepath.Rel(rootPath, path)
-		fmt.Println("--------------------------------------------------------")
-		fmt.Println(rootPath)
 		if err != nil {
 			return err
 		}
 		if info.IsDir() {
 			// header.Name += string(os.PathSeparator)
 			header.Name += string(os.PathSeparator)
-			fmt.Println(header.Name)
 		}
 
 		// Create writer for the file header and save content of the file.
@@ -80,7 +77,6 @@ func walkFunc(rootPath string, zipWriter *zip.Writer) filepath.WalkFunc {
 		if info.IsDir() {
 			return nil
 		}
-		fmt.Println(path)
 		fmt.Println(header.Name)
 		f, err := os.Open(path)
 		if err != nil {