GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - publicarray/synoedit: Synology package for editing files through a web interface

BranchesTags
Open more actions menu

Latest commit

 

History

109 Commits
109 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vscode
.vscode
 
 
conf
conf
 
 
package
package
 
 
scripts
scripts
 
 
vendor
vendor
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
INFO
INFO
 
 
LICENSE
LICENSE
 
 
LICENSE.md
LICENSE.md
 
 
PACKAGE_ICON.PNG
PACKAGE_ICON.PNG
 
 
PACKAGE_ICON_256.PNG
PACKAGE_ICON_256.PNG
 
 
README.md
README.md
 
 
build.sh
build.sh
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
package.json
package.json
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

Syno Edit

Go Report Card GoDoc

Synology package for editing files through a web interface

screen shot screen shot

Build using script

git clone https://github.com/publicarray/synoedit && cd synoedit
./build all # builds all available versions/architectures
./build amd64 # alias to build amd64 architecture only for both DSM6 and DSM7 (good for development)
./build help
Usage:  ./build.sh command

Commands:
  compress                                        compresses compiled binary with upx
  update                                          update dependencies with yarn or npm
  dependencies                                    installs npm and go dependencies (yarn/npm and dep)
  all                                             compile and package for all architectures and DSM6/7 versions
  compile [arch]                                  compile go project: e.g. compile amd64
  package [arch] [syno_arch] [min_dsm_version]    create spk e.g. package amd64 broadwell 6.1-14715
  dev                                             runs '_cp', 'compile' and 'package' commands using the native platform
  clean|clear                                     remove all *spk files
  lint                                            lint code
  test                                            run a simple test
  amd64                                           alias to compile and package for amd64 only, good for quick development

Build manually

git clone https://github.com/publicarray/synoedit.git
cd synoedit/package/src/synoedit
go build -ldflags="-s -w" -o ../../ui/index.cgi
# Run the binary
go run . -h
env SERVER_PROTOCOL=HTTP/1.1 REQUEST_METHOD=GET go run . -dev -config ../../ui/database.toml -layout ../../ui/layout.html
# or
cd ../../ui/
env SERVER_PROTOCOL=HTTP/1.1 REQUEST_METHOD=GET ./index.cgi --dev > test.html

Add package support

  1. Add your package to the synocommunity group

    for synocommunity packages add SPK_GROUP=synocommunity to your Makefile Otherwise add it to your privilege file

    {
        "defaults": {
            "run-as": "package"
        },
        "groupname": "synocommunity"
    }
  2. In the postinstall script add group read and write permissions for the files you want to add support for

    chmod g+rw -R "$SYNOPKG_PKGVAR"

About

Synology package for editing files through a web interface

github.com/publicarray/synoedit

Topics

file-editorsynology

Resources

Readme
Activity

Stars

26 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.