Add systemd user service to .deb and .rpm
This commit is contained in:
parent
d288131a33
commit
28edf4af2e
|
@ -78,6 +78,8 @@ You can disable minification by setting `MINIFY=`.
|
||||||
- Used to configure [nfpm](https://github.com/goreleaser/nfpm) to generate .deb and .rpm
|
- Used to configure [nfpm](https://github.com/goreleaser/nfpm) to generate .deb and .rpm
|
||||||
- [./build/code-server-nfpm.sh](./build/code-server-nfpm.sh)
|
- [./build/code-server-nfpm.sh](./build/code-server-nfpm.sh)
|
||||||
- Entrypoint script for code-server for .deb and .rpm
|
- Entrypoint script for code-server for .deb and .rpm
|
||||||
|
- [./build/code-server.service](./build/code-server.service)
|
||||||
|
- systemd user service packaged into the debs and rpms
|
||||||
- [./build/release-github-draft.sh](./build/release-github-draft.sh) (`yarn release:github-draft`)
|
- [./build/release-github-draft.sh](./build/release-github-draft.sh) (`yarn release:github-draft`)
|
||||||
- Uses [hub](https://github.com/github/hub) to create a draft release with a template description
|
- Uses [hub](https://github.com/github/hub) to create a draft release with a template description
|
||||||
- [./build/release-github-assets.sh](./build/release-github-assets.sh) (`yarn release:github-assets`)
|
- [./build/release-github-assets.sh](./build/release-github-assets.sh) (`yarn release:github-assets`)
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
[Unit]
|
||||||
|
Description=code-server
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=exec
|
||||||
|
ExecStart=/usr/bin/code-server
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
|
@ -13,4 +13,5 @@ license: "MIT"
|
||||||
bindir: "/usr/bin"
|
bindir: "/usr/bin"
|
||||||
files:
|
files:
|
||||||
./ci/build/code-server-nfpm.sh: /usr/bin/code-server
|
./ci/build/code-server-nfpm.sh: /usr/bin/code-server
|
||||||
|
./ci/build/code-server.service: /usr/lib/systemd/user/code-server.service
|
||||||
./release-static/**/*: "/usr/lib/code-server/"
|
./release-static/**/*: "/usr/lib/code-server/"
|
||||||
|
|
Loading…
Reference in New Issue