new makefile install without scripts
3
.gitattributes
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.gif filter=lfs diff=lfs merge=lfs -text
|
||||
*.ico filter=lfs diff=lfs merge=lfs -text
|
@ -17,9 +17,9 @@ chrono = "0.4.40"
|
||||
serde_default = "0.2.0"
|
||||
socks = "0.3.4"
|
||||
libnotify = { version = "1.0.3", optional = true }
|
||||
gdk-pixbuf = { version = "0.3.0", optional = true }
|
||||
gdk-pixbuf = { version = "0.3.0", optional = true } # DO NOT UPDATE
|
||||
winapi = { version = "0.3.9", optional = true, features = ["wincon", "winuser"] }
|
||||
tungstenite = "0.26.2"
|
||||
tungstenite = "0.27.0"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
|
47
Makefile
@ -1,36 +1,15 @@
|
||||
.PHONY: clean build windows build
|
||||
|
||||
build: build/windows-x86_64 build/linux-x86_64
|
||||
windows: build/windows-x86_64
|
||||
linux: build/linux-x86_64
|
||||
|
||||
build/windows-x86_64:
|
||||
mkdir -p build
|
||||
mkdir -p $@
|
||||
cargo build -r -F winapi --target x86_64-pc-windows-gnu
|
||||
curl -s https://api.github.com/repos/wingtk/gvsbuild/releases/latest \
|
||||
| grep -o ".*browser_download_url.*GTK4_Gvsbuild.*_x64.zip.*" \
|
||||
| cut -d : -f 2,3 \
|
||||
| tr -d \" \
|
||||
| wget -O $@/gtk4.zip -qi -
|
||||
unzip $@/gtk4.zip -d $@
|
||||
rm $@/gtk4.zip
|
||||
mv $@/bin/* $@/
|
||||
cp target/x86_64-pc-windows-gnu/release/bRAC.exe $@
|
||||
rm -r $@/bin
|
||||
cp install.bat $@
|
||||
cp uninstall.bat $@
|
||||
|
||||
build/linux-x86_64:
|
||||
mkdir -p build
|
||||
mkdir -p $@
|
||||
cargo build -r --target x86_64-unknown-linux-gnu
|
||||
# patchbin target/x86_64-unknown-linux-gnu/release/bRAC
|
||||
cp target/x86_64-unknown-linux-gnu/release/bRAC $@
|
||||
cp ru.themixray.bRAC.png $@
|
||||
cp ru.themixray.bRAC.desktop $@
|
||||
cp install.sh $@
|
||||
cp uninstall.sh $@
|
||||
.PHONY: clean install uninstall
|
||||
|
||||
install: target/release/bRAC
|
||||
cp $< ~/.local/bin/bRAC
|
||||
chmod +x ~/.local/bin/bRAC
|
||||
mkdir ~/.local/share/bRAC -p
|
||||
cp misc/bRAC.png ~/.local/share/bRAC/icon.png
|
||||
cp misc/bRAC.desktop ~/.local/share/applications/ru.themixray.bRAC.desktop
|
||||
uninstall:
|
||||
rm -rf ~/.config/bRAC ~/.local/share/bRAC
|
||||
rm -f ~/.local/share/applications/ru.themixray.bRAC.desktop
|
||||
target/release/bRAC:
|
||||
cargo build -r
|
||||
clean:
|
||||
rm -r build
|
||||
cargo clean
|
@ -1,4 +1,4 @@
|
||||
# 
|
||||
# 
|
||||
<!--
|
||||
[<img src="https://github.com/user-attachments/assets/f2be5caa-6246-4a6a-9bee-2b53086f9afb" height="30">]()
|
||||
[<img src="https://github.com/user-attachments/assets/4d35191d-1dbc-4391-a761-6ae7f76ba7af" height="30">]()
|
||||
@ -20,7 +20,7 @@ better RAC client
|
||||
- RACS compatible (--enable-ssl or in --configure enable SSL)
|
||||
- chunked reading messages
|
||||
|
||||

|
||||

|
||||
|
||||
## how to run
|
||||
|
||||
|
2
build.rs
@ -9,7 +9,7 @@ use {
|
||||
fn main() -> io::Result<()> {
|
||||
if env::var_os("CARGO_CFG_WINDOWS").is_some() {
|
||||
WindowsResource::new()
|
||||
.set_icon("icon.ico")
|
||||
.set_icon("misc/icon.ico")
|
||||
.compile()?;
|
||||
}
|
||||
Ok(())
|
||||
|
@ -3,8 +3,8 @@ Name=bRAC
|
||||
Version=0.1.4
|
||||
Type=Application
|
||||
Comment=better RAC client
|
||||
Icon=ru.themixray.bRAC.png
|
||||
Exec=bRAC
|
||||
Icon=~/.local/share/bRAC/icon.png
|
||||
Exec=~/.local/bin/bRAC
|
||||
Categories=Network;
|
||||
StartupNotify=true
|
||||
DBusActivatable=true
|
3
misc/bRAC.png
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6bfc6d5cc1aea7ce03204cbe50bbaa1e8a1e1e71ba39b38d801354bcd19b3ef1
|
||||
size 30985
|
3
misc/icon.ico
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1cac648a6d620f4b655291c5afe1cb2a311eee5e04adcce8502e5a51cfe7ad09
|
||||
size 67646
|
3
misc/image.png
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:727c3caaec8dd3744aaaa11a85dae20138f3440a3125a14396fc556df99f4e51
|
||||
size 62730
|
3
misc/logo.gif
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fdc05097ef32682f52da42028169b180d711742163dc9d142522c8bfffb93510
|
||||
size 20425
|
0
install.sh → misc/system-install.sh
Executable file → Normal file
@ -10,5 +10,5 @@ getent passwd | while IFS=: read -r name password uid gid gecos home shell; do
|
||||
done
|
||||
|
||||
rm -f /bin/bRAC
|
||||
rm -f ru.themixray.bRAC.png /usr/share/pixmaps
|
||||
rm -f ru.themixray.bRAC.desktop /usr/share/applications
|
||||
rm -f /usr/share/pixmaps/ru.themixray.bRAC.png
|
||||
rm -f /usr/share/applications/ru.themixray.bRAC.desktop
|
7
misc/user-install.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
cp bRAC ~/.local/bin/bRAC
|
||||
chmod +x ~/.local/bin/bRAC
|
||||
mkdir ~/.local/share/bRAC -p
|
||||
cp misc/bRAC.png ~/.local/share/bRAC/icon.png
|
||||
cp misc/bRAC.desktop ~/.local/share/applications/ru.themixray.bRAC.desktop
|
3
misc/user-uninstall.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
rm -rf ~/.config/bRAC ~/.local/share/bRAC ~/.local/share/applications/ru.themixray.bRAC.desktop
|
Before Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 130 B |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 130 B |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 130 B |