mirror of
https://github.com/octoleo/syncthing.git
synced 2024-10-10 06:57:56 +00:00
build: Add build steps for discosrv
This commit is contained in:
parent
7035ea3ab7
commit
5fc53f59c7
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,7 @@
|
|||||||
/syncthing
|
/syncthing
|
||||||
|
/discosrv
|
||||||
syncthing.exe
|
syncthing.exe
|
||||||
|
discosrv.exe
|
||||||
*.tar.gz
|
*.tar.gz
|
||||||
*.zip
|
*.zip
|
||||||
*.asc
|
*.asc
|
||||||
|
17
build.go
17
build.go
@ -93,6 +93,23 @@ var targets = map[string]target{
|
|||||||
{src: "etc/linux-systemd/user/syncthing.service", dst: "deb/usr/lib/systemd/user/syncthing.service", perm: 0644},
|
{src: "etc/linux-systemd/user/syncthing.service", dst: "deb/usr/lib/systemd/user/syncthing.service", perm: 0644},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
"discosrv": {
|
||||||
|
name: "discosrv",
|
||||||
|
buildPkg: "./cmd/discosrv",
|
||||||
|
binaryName: "discosrv", // .exe will be added automatically for Windows builds
|
||||||
|
archiveFiles: []archiveFile{
|
||||||
|
{src: "{{binary}}", dst: "{{binary}}", perm: 0755},
|
||||||
|
{src: "cmd/discosrv/README.md", dst: "README.txt", perm: 0644},
|
||||||
|
{src: "cmd/discosrv/LICENSE", dst: "LICENSE.txt", perm: 0644},
|
||||||
|
{src: "AUTHORS", dst: "AUTHORS.txt", perm: 0644},
|
||||||
|
},
|
||||||
|
debianFiles: []archiveFile{
|
||||||
|
{src: "{{binary}}", dst: "deb/usr/bin/{{binary}}", perm: 0755},
|
||||||
|
{src: "cmd/discosrvREADME.md", dst: "deb/usr/share/doc/discosrv/README.txt", perm: 0644},
|
||||||
|
{src: "cmd/discosrvLICENSE", dst: "deb/usr/share/doc/discosrv/LICENSE.txt", perm: 0644},
|
||||||
|
{src: "AUTHORS", dst: "deb/usr/share/doc/discosrv/AUTHORS.txt", perm: 0644},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
Loading…
Reference in New Issue
Block a user