Skip to content

Commit b8b2077

Browse files
committed
fixes
1 parent 7da11b9 commit b8b2077

13 files changed

Lines changed: 23 additions & 15 deletions

File tree

INFO

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ support_url="https://github.com/publicarray/synoedit/issues/new"
1212
helpurl="https://github.com/publicarray/synoedit/wiki"
1313
checksum=""
1414
dsmuidir="ui"
15-
dsmappname="com.publicarray.synoedit"
15+
dsmappname="SYNO.SDS.SynoEdit.Application"
16+
dsmapppage="SYNO.SDS.SynoEdit.Application"
17+
dsmapplaunchname="SYNO.SDS.SynoEdit.Application"
1618
helpurl="https://github.com/publicarray/synoedit"
1719
silent_install="yes"
1820
silent_upgrade="yes"

build.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
# example: ./build.sh compile amd64; ./build.sh package amd64 apollolake 7.0-4000
4+
35
set -eu
46

57
# https://originhelp.synology.com/developer-guide/appendix/index.html
@@ -285,7 +287,8 @@ elif [ "$CMD" = "compile" ]; then
285287
_cp
286288
compile "$BUILD_ARCH"
287289
elif [ "$CMD" = "package" ]; then
288-
package
290+
shift
291+
package "$@"
289292
elif [ "$CMD" = "dev" ]; then
290293
_cp
291294
compile

conf/privilege

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"defaults": {
33
"run-as": "package"
4-
},
5-
"join-groupname": "http",
6-
"join-pkg-groupnames", [ {"dnscrypt-proxy": "sc-dnscrypt-proxy"} ]
7-
4+
}
85
}

package/src/synoedit/file_utils.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ func ReadFile(file string) string {
5252
// SaveFile saves the file content (data) to file
5353
func SaveFile(file string, data string) {
5454
// If file exists get file info struct
55-
fInfo, err := os.Stat(file)
56-
if err != nil {
57-
logError(err.Error())
58-
}
55+
// fInfo, err := os.Stat(file)
56+
// if err != nil {
57+
// logError(err.Error())
58+
// }
5959

6060
// Get stat structure (for uid and gid)
6161
// stat := fInfo.Sys().(*syscall.Stat_t)

package/src/synoedit/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030

3131
const (
3232
// AppVersion is the Program Version
33-
AppVersion = "0.0.6"
33+
AppVersion = "0.0.7"
3434
// DefaultDatabaseFileName is the main file name for database
3535
DefaultDatabaseFileName = "database.toml"
3636
// DefaultLayoutFileName is the html template for the http repose

package/ui/config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"type": "legacy",
55
"allUsers": false,
66
"allowMultiInstance": false,
7-
"title": "app:displayname",
8-
"desc": "app:description",
7+
"title": "Syno Edit",
8+
"desc": "A simple text editor GUI for Synology. JavaScript editor implemented using CodeMirror.",
99
"icon": "images/synoedit-{0}.png",
1010
"appWindow": "SYNO.SDS.SynoEdit.Application",
1111
"texts": "texts",

package/ui/index.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"app": "SYNO.SDS.SynoEdit.Application",
3-
"title": "add:displayname",
4-
"desc": "app:description",
3+
"title": "Syno Edit",
4+
"desc": "A simple text editor GUI for Synology. JavaScript editor implemented using CodeMirror.",
55
"stringset": "texts",
66
"keywords": [
77
"text",

scripts/postinst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
#!/bin/sh
2+
exit 0

scripts/postuninst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
#!/bin/sh
2+
exit 0

scripts/postupgrade

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
#!/bin/sh
2+
exit 0

0 commit comments

Comments
 (0)