Compare commits

...

2 Commits

Author SHA1 Message Date
Ophestra Umiker bc88eb0c44
apply X11 license
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
2024-07-01 13:13:50 +09:00
Ophestra Umiker 0693bffa4a
rpcfetch: ui: show version in interface
release / release (push) Successful in 15m20s Details
Default fallback value of "impure", the flake build script sets it to "flake", and the gitea action sets it to the tag.

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
2024-06-30 15:37:16 +09:00
5 changed files with 16 additions and 4 deletions

View File

@ -35,7 +35,7 @@ jobs:
if: ${{ runner.os == 'Linux' }} if: ${{ runner.os == 'Linux' }}
- name: Build for Linux - name: Build for Linux
run: >- run: >-
sh -c "go build -v -ldflags '-s -w' -o bin/rpcfetch-linux ./fetch && sh -c "go build -v -ldflags '-s -w -X main.Version=${{ github.ref_name }}' -o bin/rpcfetch-linux ./fetch &&
sha256sum --tag -b bin/rpcfetch-linux > bin/rpcfetch-linux.sha256" sha256sum --tag -b bin/rpcfetch-linux > bin/rpcfetch-linux.sha256"
- name: Build for Windows - name: Build for Windows
run: >- run: >-
@ -43,7 +43,7 @@ jobs:
CGO_ENABLED=1 CGO_ENABLED=1
CGO_LDFLAGS='-static-libgcc -static' CGO_LDFLAGS='-static-libgcc -static'
GOOS=windows GOARCH=amd64 GOOS=windows GOARCH=amd64
go build -v -ldflags '-s -w -H=windowsgui' -o bin/rpcfetch.exe ./fetch && go build -v -ldflags '-s -w -X main.Version=${{ github.ref_name }} -H=windowsgui' -o bin/rpcfetch.exe ./fetch &&
sha256sum --tag -b bin/rpcfetch.exe > bin/rpcfetch.exe.sha256" sha256sum --tag -b bin/rpcfetch.exe > bin/rpcfetch.exe.sha256"
- name: Release - name: Release
id: use-go-action id: use-go-action

9
LICENSE Normal file
View File

@ -0,0 +1,9 @@
Copyright (C) 2024 Ophestra Umiker
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL OPHESTRA UMIKER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of Ophestra Umiker shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from Ophestra Umiker.

View File

@ -22,6 +22,8 @@ var (
confPath string confPath string
headless bool headless bool
dumpConfig bool dumpConfig bool
Version = "impure"
) )
func init() { func init() {

View File

@ -207,6 +207,7 @@ var (
widget.NewForm( widget.NewForm(
widget.NewFormItem("Replaces", statusReplaces), widget.NewFormItem("Replaces", statusReplaces),
widget.NewFormItem("Timer", statusTimer), widget.NewFormItem("Timer", statusTimer),
widget.NewFormItem("Version", widget.NewLabel(Version)),
), ),
widget.NewSeparator(), widget.NewSeparator(),
container.NewHBox( container.NewHBox(

View File

@ -25,9 +25,9 @@
clang clang
] ++ (if stdenv.isLinux then [ ] ++ (if stdenv.isLinux then [
(pkgs.writeShellScriptBin "build" '' (pkgs.writeShellScriptBin "build" ''
go build -v -o /tmp/rpcfetch ./fetch go build -v -ldflags '-s -w -X main.Version=flake' -o /tmp/rpcfetch ./fetch
# wayland support is partially broken at the moment # wayland support is partially broken at the moment
#go build -v -tags wayland -o /tmp/wl-rpcfetch ./fetch #go build -v -ldflags '-s -w -X main.Version=flake' -tags wayland -o /tmp/wl-rpcfetch ./fetch
'') '')
vulkan-headers vulkan-headers
libxkbcommon libxkbcommon