Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
publicarray committed Oct 10, 2020
1 parent 7da11b9 commit b8b2077
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 15 deletions.
4 changes: 3 additions & 1 deletion INFO
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ support_url="https://github.com/publicarray/synoedit/issues/new"
helpurl="https://github.com/publicarray/synoedit/wiki"
checksum=""
dsmuidir="ui"
dsmappname="com.publicarray.synoedit"
dsmappname="SYNO.SDS.SynoEdit.Application"
dsmapppage="SYNO.SDS.SynoEdit.Application"
dsmapplaunchname="SYNO.SDS.SynoEdit.Application"
helpurl="https://github.com/publicarray/synoedit"
silent_install="yes"
silent_upgrade="yes"
Expand Down
5 changes: 4 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh

# example: ./build.sh compile amd64; ./build.sh package amd64 apollolake 7.0-4000

set -eu

# https://originhelp.synology.com/developer-guide/appendix/index.html
Expand Down Expand Up @@ -285,7 +287,8 @@ elif [ "$CMD" = "compile" ]; then
_cp
compile "$BUILD_ARCH"
elif [ "$CMD" = "package" ]; then
package
shift
package "$@"
elif [ "$CMD" = "dev" ]; then
_cp
compile
Expand Down
5 changes: 1 addition & 4 deletions conf/privilege
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"defaults": {
"run-as": "package"
},
"join-groupname": "http",
"join-pkg-groupnames", [ {"dnscrypt-proxy": "sc-dnscrypt-proxy"} ]

}
}
8 changes: 4 additions & 4 deletions package/src/synoedit/file_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ func ReadFile(file string) string {
// SaveFile saves the file content (data) to file
func SaveFile(file string, data string) {
// If file exists get file info struct
fInfo, err := os.Stat(file)
if err != nil {
logError(err.Error())
}
// fInfo, err := os.Stat(file)
// if err != nil {
// logError(err.Error())
// }

// Get stat structure (for uid and gid)
// stat := fInfo.Sys().(*syscall.Stat_t)
Expand Down
2 changes: 1 addition & 1 deletion package/src/synoedit/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (

const (
// AppVersion is the Program Version
AppVersion = "0.0.6"
AppVersion = "0.0.7"
// DefaultDatabaseFileName is the main file name for database
DefaultDatabaseFileName = "database.toml"
// DefaultLayoutFileName is the html template for the http repose
Expand Down
4 changes: 2 additions & 2 deletions package/ui/config
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"type": "legacy",
"allUsers": false,
"allowMultiInstance": false,
"title": "app:displayname",
"desc": "app:description",
"title": "Syno Edit",
"desc": "A simple text editor GUI for Synology. JavaScript editor implemented using CodeMirror.",
"icon": "images/synoedit-{0}.png",
"appWindow": "SYNO.SDS.SynoEdit.Application",
"texts": "texts",
Expand Down
4 changes: 2 additions & 2 deletions package/ui/index.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"app": "SYNO.SDS.SynoEdit.Application",
"title": "add:displayname",
"desc": "app:description",
"title": "Syno Edit",
"desc": "A simple text editor GUI for Synology. JavaScript editor implemented using CodeMirror.",
"stringset": "texts",
"keywords": [
"text",
Expand Down
1 change: 1 addition & 0 deletions scripts/postinst
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#!/bin/sh
exit 0
1 change: 1 addition & 0 deletions scripts/postuninst
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#!/bin/sh
exit 0
1 change: 1 addition & 0 deletions scripts/postupgrade
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#!/bin/sh
exit 0
1 change: 1 addition & 0 deletions scripts/preinst
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#!/bin/sh
exit 0
1 change: 1 addition & 0 deletions scripts/preuninst
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#!/bin/sh
exit 0
1 change: 1 addition & 0 deletions scripts/preupgrade
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#!/bin/sh
exit 0

0 comments on commit b8b2077

Please sign in to comment.