forked from IceWhaleTech/CasaOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add send notify function * add shell script * add system notiry * remove disk and test common package * update http status * add share function to common * remove temp path * remove /DATA directory initialization - moved to local-storage (IceWhaleTech#578) * update goreleaser configuration * wip * change service type to notify for systemd so its status is OK only when service is initialized successfully * update CasaOS-Common to fix runtime error * wip * add send notify function * add shell script * add system notiry * remove disk and test common package * update http status * add share function to common * remove temp path * remove /DATA directory initialization - moved to local-storage (IceWhaleTech#578) * update goreleaser configuration * wip * change service type to notify for systemd so its status is OK only when service is initialized successfully * update CasaOS-Common to fix runtime error * wip * wip * wip * wip * wip * Utilization interface to supplement disk information * fix upload file * wip * wip * add update url * wip * wip * add change log * update changelog Co-authored-by: LinkLeong <a624669980@163.com>
- Loading branch information
Showing
57 changed files
with
1,326 additions
and
2,355 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,4 +35,5 @@ __debug_bin | |
main | ||
github.com | ||
.all-contributorsrc | ||
dist | ||
dist | ||
CasaOS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
# This is an example .goreleaser.yml file with some sensible defaults. | ||
# Make sure to check the documentation at https://goreleaser.com | ||
project_name: casaos | ||
before: | ||
hooks: | ||
# You may remove this if you don't use go modules. | ||
- go mod tidy | ||
builds: | ||
- id: casaos-amd64 | ||
binary: build/sysroot/usr/bin/casaos | ||
env: | ||
- CGO_ENABLED=1 | ||
- CC=x86_64-linux-gnu-gcc | ||
gcflags: | ||
- all=-N -l | ||
ldflags: | ||
- -extldflags "-static" | ||
tags: | ||
- musl | ||
- netgo | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
hooks: | ||
post: | ||
- find build/sysroot -type f | xargs -L 1 realpath --relative-to=build/sysroot > build/sysroot.manifest | ||
- id: casaos-arm64 | ||
binary: build/sysroot/usr/bin/casaos | ||
env: | ||
- CGO_ENABLED=1 | ||
- CC=aarch64-linux-gnu-gcc | ||
gcflags: | ||
- all=-N -l | ||
ldflags: | ||
- -extldflags "-static" | ||
tags: | ||
- musl | ||
- netgo | ||
goos: | ||
- linux | ||
goarch: | ||
- arm64 | ||
hooks: | ||
post: | ||
- find build/sysroot -type f | xargs -L 1 realpath --relative-to=build/sysroot > build/sysroot.manifest | ||
- id: casaos-arm-7 | ||
binary: build/sysroot/usr/bin/casaos | ||
env: | ||
- CGO_ENABLED=1 | ||
- CC=arm-linux-gnueabihf-gcc | ||
gcflags: | ||
- all=-N -l | ||
ldflags: | ||
- -extldflags "-static" | ||
tags: | ||
- musl | ||
- netgo | ||
goos: | ||
- linux | ||
goarch: | ||
- arm | ||
goarm: | ||
- "7" | ||
hooks: | ||
post: | ||
- find build/sysroot -type f | xargs -L 1 realpath --relative-to=build/sysroot > build/sysroot.manifest | ||
- id: casaos-migration-tool-amd64 | ||
binary: build/sysroot/usr/bin/casaos-migration-tool | ||
main: ./cmd/migration-tool | ||
env: | ||
- CGO_ENABLED=1 | ||
- CC=x86_64-linux-gnu-gcc | ||
gcflags: | ||
- all=-N -l | ||
ldflags: | ||
- -extldflags "-static" | ||
tags: | ||
- musl | ||
- netgo | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
- id: casaos-migration-tool-arm64 | ||
binary: build/sysroot/usr/bin/casaos-migration-tool | ||
main: ./cmd/migration-tool | ||
env: | ||
- CGO_ENABLED=1 | ||
- CC=aarch64-linux-gnu-gcc | ||
gcflags: | ||
- all=-N -l | ||
ldflags: | ||
- -extldflags "-static" | ||
tags: | ||
- musl | ||
- netgo | ||
goos: | ||
- linux | ||
goarch: | ||
- arm64 | ||
- id: casaos-migration-tool-arm-7 | ||
binary: build/sysroot/usr/bin/casaos-migration-tool | ||
main: ./cmd/migration-tool | ||
env: | ||
- CGO_ENABLED=1 | ||
- CC=arm-linux-gnueabihf-gcc | ||
gcflags: | ||
- all=-N -l | ||
ldflags: | ||
- -extldflags "-static" | ||
tags: | ||
- musl | ||
- netgo | ||
goos: | ||
- linux | ||
goarch: | ||
- arm | ||
goarm: | ||
- "7" | ||
archives: | ||
- name_template: "{{ .Os }}-{{ .Arch }}-{{ .ProjectName }}-v{{ .Version }}" | ||
id: casaos | ||
builds: | ||
- casaos-amd64 | ||
- casaos-arm64 | ||
- casaos-arm-7 | ||
replacements: | ||
arm: arm-7 | ||
files: | ||
- build/**/* | ||
- name_template: "{{ .Os }}-{{ .Arch }}-{{ .ProjectName }}-migration-tool-v{{ .Version }}" | ||
id: casaos-migration-tool | ||
builds: | ||
- casaos-migration-tool-amd64 | ||
- casaos-migration-tool-arm64 | ||
- casaos-migration-tool-arm-7 | ||
replacements: | ||
arm: arm-7 | ||
files: | ||
- build/sysroot/etc/**/* | ||
checksum: | ||
name_template: "checksums.txt" | ||
snapshot: | ||
name_template: "{{ incpatch .Version }}" | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- "^docs:" | ||
- "^test:" | ||
# release: | ||
# github: | ||
# owner: IceWhaleTech | ||
# name: CasaOS | ||
# draft: true | ||
# prerelease: auto | ||
# mode: replace | ||
# name_template: "v{{ .Version }}" | ||
release: | ||
github: | ||
owner: IceWhaleTech | ||
name: CasaOS | ||
draft: true | ||
prerelease: auto | ||
mode: replace | ||
name_template: "v{{ .Version }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
LEGACY_WITHOUT_VERSION v0.3.6 | ||
v0.3.5 v0.3.6 | ||
v0.3.5.1 v0.3.6 | ||
LEGACY_WITHOUT_VERSION https://github.com/IceWhaleTech/CasaOS/releases/download/v0.3.6/linux-${ARCH}-casaos-migration-tool-v0.3.6.tar.gz | ||
v0.3.5 https://github.com/IceWhaleTech/CasaOS/releases/download/v0.3.6/linux-${ARCH}-casaos-migration-tool-v0.3.6.tar.gz | ||
v0.3.5.1 https://github.com/IceWhaleTech/CasaOS/releases/download/v0.3.6/linux-${ARCH}-casaos-migration-tool-v0.3.6.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
[Unit] | ||
After=casaos-gateway.service | ||
ConditionFileNotEmpty=/etc/casaos/casaos.conf | ||
Description=CasaOS Service | ||
Description=CasaOS Main Service | ||
|
||
[Service] | ||
ExecStart=/usr/bin/casaos -c /etc/casaos/casaos.conf | ||
PIDFile=/var/run/casaos/casaos.pid | ||
Restart=always | ||
Type=notify | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
Empty file.
Oops, something went wrong.