File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,12 +96,13 @@ compile() {
9696 cd package || exit
9797 export GOPATH=$PWD
9898 cd src/synoedit || exit
99+ echo " go compiling ..."
99100 if [ -z " $ARCH " ]; then
100101 go build -ldflags=" -s -w" -o ../../ui/index.cgi
101102 # go build -ldflags "-s -w" -o package/ui/index.cgi -- package/src/synoedit/*.go
102103 else
103104 # env GOOS=linux GOARCH="$ARCH" go build -ldflags "-s -w" -o package/ui/index.cgi -- package/src/*.go
104- env GOOS=linux GOARCH=" $ARCH " go build -ldflags " -s -w" -o ../../ui/index.cgi
105+ env CGO_ENABLED=0 GOOS=linux GOARCH=" $ARCH " go build -ldflags " -s -w" -o ../../ui/index.cgi
105106 fi
106107 cd ../../.. || edit
107108 else
@@ -129,7 +130,12 @@ package() {
129130 md5sum=" $( shell command -v md5sum 2> /dev/null || command -v gmd5sum 2> /dev/null) "
130131
131132 # # Create package.tgz
132- tar cvfz package.tgz --exclude=' src' --exclude=' ui/test' -C package .
133+ tar cvfz package.tgz --exclude=' src' \
134+ --exclude=" pkg" \
135+ --exclude=' ui/test' \
136+ --exclude=' ui/test.sh' \
137+ --exclude=' .DS_Store' \
138+ -C package .
133139
134140 # arch="arm arm64 386 amd64 ppc64" -> arm, x86, x86_64
135141
Original file line number Diff line number Diff line change 11#! /bin/sh
2- " postinst" >> " $SYNOPKG_TEMP_LOGFILE "
3- ln -s " ${SYNOPKG_PKGDEST} /ui/" /usr/syno/synoman/webman/3rdparty/synoedit >> " ${SYNOPKG_TEMP_LOGFILE} " 2>&1
Original file line number Diff line number Diff line change 11#! /bin/sh
2- " postuninst" >> " $SYNOPKG_TEMP_LOGFILE "
3- # pkgindexer_del "${SYNOPKG_PKGDEST}/ui/helptoc.conf" >> "${INST_LOG}" 2>&1
4- # pkgindexer_del "${SYNOPKG_PKGDEST}/ui/index.conf" >> "${INST_LOG}" 2>&1
5- rm -f /usr/syno/synoman/webman/3rdparty/synoedit >> " ${SYNOPKG_TEMP_LOGFILE} " 2>&1
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
13case $1 in
24 start)
35 exit 0
You can’t perform that action at this time.
0 commit comments