1
0
SongZihuan 5 сар өмнө
parent
commit
6060433dfd

+ 3 - 0
ps/build/v1/build.ps1

@@ -1,4 +1,7 @@
 Write-Output Start building...
+IF (Test-Path ./target/build/Huan档案.exe) {
+    Remove-Item ./target/build/Huan档案.exe
+}
 fyne package --os windows --src ./src/cmd/v1
 Move-Item ./src/cmd/v1/Huan档案.exe ./target/build/Huan档案.exe
 Write-Output Finish

+ 3 - 0
ps/release/v1/build.ps1

@@ -1,4 +1,7 @@
 Write-Output Start building release...
+IF (Test-Path ./target/release/Huan档案.exe) {
+    Remove-Item ./target/release/Huan档案.exe
+}
 fyne package --os windows --src ./src/cmd/v1 --release
 Move-Item ./src/cmd/v1/Huan档案.exe ./target/release/Huan档案.exe
 Write-Output Finish

+ 2 - 2
src/cmd/v1/FyneApp.toml

@@ -4,8 +4,8 @@ Website = "https://github.com/SuperH-0630"
   Icon = "../../../assest/ico/app.ico"
   Name = "Huan档案"
   ID = "com.song-zh.hdangan"
-  Version = "1.0.0"
-  Build = 5
+  Version = "1.0.1"
+  Build = 8
 
 [LinuxAndBSD]
   GenericName = "Huan档案"

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 16
src/cmd/v1/fyne_metadata_init.go


+ 0 - 3
src/excelreader/reader.go

@@ -366,9 +366,6 @@ func checkTitle(t []string) bool {
 
 func makeFile(rt runtime.RunTime, t []string) int {
 	file, record, oldRecord, err := _makeFile(rt, t)
-	if err != nil {
-		fmt.Printf("err: %s", err)
-	}
 
 	if err == nil && file != nil && record != nil {
 		isNew := file.ID == 0

+ 2 - 2
src/model/action_file.go

@@ -113,8 +113,8 @@ func GetNewFileID(rt runtime.RunTime) (int64, error) {
 		return 0, err
 	}
 
-	if res.FileID <= 0 {
-		res.FileID = 1
+	if res.FileID < 0 {
+		res.FileID = 0
 	}
 
 	return res.FileID + 1, err

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно