-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathbuild-release.patch
More file actions
33 lines (32 loc) · 1.21 KB
/
Copy pathbuild-release.patch
File metadata and controls
33 lines (32 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
diff --git a/build/release.mk b/build/release.mk
index faa027239..df40f0c68 100644
--- a/build/release.mk
+++ b/build/release.mk
@@ -99,7 +99,7 @@ package-prep:
@# Resource directories
mkdir -p $(DIST_PATH)/config
cp -L config/README.md $(DIST_PATH)/config
- OUTPUT_CONFIG=$(PWD)/$(DIST_PATH)/config/config.json go run ./scripts/config_generator
+ OUTPUT_CONFIG=$(PWD)/$(DIST_PATH)/config/config.json GOOS= GOARCH= go run ./scripts/config_generator
cp -RL fonts $(DIST_PATH)
cp -RL templates $(DIST_PATH)
rm -rf $(DIST_PATH)/templates/*.mjml $(DIST_PATH)/templates/partials/
--- a/channels/app/platform/disk_linux.go
+++ b/channels/app/platform/disk_linux.go
@@ -38,7 +38,7 @@
ch <- result{info: diskInfo{
TotalMB: stat.Blocks * bsize / (1024 * 1024),
AvailableMB: stat.Bavail * bsize / (1024 * 1024),
- FilesystemType: fsTypeToString(stat.Type),
+ FilesystemType: fsTypeToString(int64(stat.Type)),
}}
}()
--- a/channels/app/platform/memory_linux.go
+++ b/channels/app/platform/memory_linux.go
@@ -17,5 +17,5 @@
return 0, err
}
// Sysinfo returns memory in units of info.Unit bytes
- return info.Totalram * uint64(info.Unit), nil
+ return uint64(info.Totalram) * uint64(info.Unit), nil
}