Skip to content

Commit 36bf31e

Browse files
committed
Reorganize files
1 parent 3427654 commit 36bf31e

File tree

150 files changed

+62
-232
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+62
-232
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ members = [
2828
"usbsas-server",
2929
"usbsas-hid/hid-user",
3030
"usbsas-hid/hid-dealer",
31-
"client/usbsas-client",
31+
"usbsas-client",
3232
"usbsas-tools"
3333
]
3434
default-members = [
@@ -64,4 +64,4 @@ overflow-checks = true
6464
strip = true
6565

6666
[workspace.metadata]
67-
version = "0.2.1"
67+
version = "0.2.2"

client/kiosk/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

client/kiosk/Makefile

Lines changed: 0 additions & 39 deletions
This file was deleted.

client/kiosk/usbsas-kiosk/DEBIAN/control

Lines changed: 0 additions & 8 deletions
This file was deleted.

client/kiosk/usbsas-kiosk/DEBIAN/copyright

Lines changed: 0 additions & 5 deletions
This file was deleted.

client/kiosk/usbsas-kiosk/DEBIAN/postinst

Lines changed: 0 additions & 12 deletions
This file was deleted.

client/kiosk/usbsas-kiosk/DEBIAN/postrm

Lines changed: 0 additions & 10 deletions
This file was deleted.

client/kiosk/usbsas-kiosk/DEBIAN/prerm

Lines changed: 0 additions & 13 deletions
This file was deleted.

client/kiosk/usbsas-kiosk/lib/systemd/system/usbsas-client.service

Lines changed: 0 additions & 25 deletions
This file was deleted.

client/kiosk/usbsas-kiosk/usr/bin/usbsas-client-xinit

Lines changed: 0 additions & 24 deletions
This file was deleted.

client/nwjs/node-main.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

client/nwjs/package.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

client/nwjs/package.kiosk.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

client/nwjs/web

Lines changed: 0 additions & 1 deletion
This file was deleted.

client/usbsas-client/Cargo.toml

Lines changed: 0 additions & 41 deletions
This file was deleted.

debian/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ RUN set -eux; \
1818
libdbus-1-dev \
1919
libudev-dev \
2020
libseccomp-dev \
21+
libwebkit2gtk-4.1-dev \
2122
live-build \
2223
dpkg-dev \
2324
clamav-daemon \

debian/Makefile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ PKG_DIR=../target/debian
44

55
export USBSAS_ISO_VER=$(ISO_VER)
66
export USBSAS_BIN_PATH=/usr/libexec
7-
export USBSAS_WEBFILES_DIR=/usr/share/usbsas/web
87

98
CORE_VER := $(shell grep '^version = ' ../usbsas-usbsas/Cargo.toml | cut -d'"' -f2)-1
109
SRV_VER := $(shell grep '^version = ' ../usbsas-server/Cargo.toml | cut -d'"' -f2)-1
1110
ASRV_VER := $(shell grep '^version = ' ../usbsas-analyzer-server/Cargo.toml | cut -d'"' -f2)-1
1211
HID_VER := $(shell grep '^version = ' ../usbsas-hid/hid-dealer/Cargo.toml | cut -d'"' -f2)-1
1312
KIOSK_VER := $(shell grep 'Version' ../client/kiosk/usbsas-kiosk/DEBIAN/control | cut -d' ' -f2)-1
1413

15-
all: ../client/live-iso/usbsas-$(ISO_VER)-amd64.hybrid.iso
14+
all: ../live-iso/usbsas-$(ISO_VER)-amd64.hybrid.iso
1615

1716
pkgs: $(PKG_DIR)/usbsas-kiosk_$(KIOSK_VER)_amd64.deb \
1817
$(PKG_DIR)/usbsas-core_$(CORE_VER)_amd64.deb \
@@ -21,7 +20,8 @@ pkgs: $(PKG_DIR)/usbsas-kiosk_$(KIOSK_VER)_amd64.deb \
2120
$(PKG_DIR)/usbsas-hid_$(HID_VER)_amd64.deb
2221

2322
$(PKG_DIR)/usbsas-kiosk_$(KIOSK_VER)_amd64.deb:
24-
make -C ../client/kiosk
23+
cargo build --release --manifest-path=../usbsas-client/Cargo.toml
24+
cargo-deb --no-build --manifest-path=../usbsas-client/Cargo.toml
2525

2626
$(PKG_DIR)/usbsas-core_$(CORE_VER)_amd64.deb:
2727
cargo build --release --manifest-path=../Cargo.toml
@@ -39,14 +39,12 @@ $(PKG_DIR)/usbsas-hid_$(HID_VER)_amd64.deb:
3939
cargo build --release --manifest-path=../usbsas-hid/hid-dealer/Cargo.toml
4040
cargo-deb --no-build --manifest-path=../usbsas-hid/hid-dealer/Cargo.toml
4141

42-
../client/live-iso/usbsas-$(ISO_VER)-amd64.hybrid.iso: pkgs
43-
make -C ../client/live-iso
42+
../live-iso/usbsas-$(ISO_VER)-amd64.hybrid.iso: pkgs
43+
make -C ../live-iso
4444

4545
clean:
46-
make -C ../client/live-iso clean
47-
make -C ../client/kiosk clean
46+
make -C ../live-iso clean
4847

4948
distclean: clean
50-
make -C ../client/live-iso distclean
51-
make -C ../client/kiosk distclean
49+
make -C ../live-iso distclean
5250
cargo clean --manifest-path=../Cargo.toml

doc/build_usage.md

Lines changed: 0 additions & 3 deletions

doc/kiosk.md

Lines changed: 0 additions & 1 deletion
File renamed without changes.

client/live-iso/Makefile renamed to live-iso/Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
ISO_VER=$(shell grep '^version' ../../Cargo.toml | cut -d'"' -f2)
1+
ISO_VER=$(shell grep '^version' ../Cargo.toml | cut -d'"' -f2)
22

33
DST_PKG_DIR=config/includes.chroot
4-
SRC_PKG_DIR=../../target/debian
4+
SRC_PKG_DIR=../target/debian
55

66
export USBSAS_ISO_VER=$(ISO_VER)
77

8-
CORE_VER := $(shell grep '^version = ' ../../usbsas-usbsas/Cargo.toml | cut -d'"' -f2)
9-
SRV_VER := $(shell grep '^version = ' ../../usbsas-server/Cargo.toml | cut -d'"' -f2)
10-
ASRV_VER := $(shell grep '^version = ' ../../usbsas-analyzer-server/Cargo.toml | cut -d'"' -f2)
11-
HID_VER := $(shell grep '^version = ' ../../usbsas-hid/hid-dealer/Cargo.toml | cut -d'"' -f2)
12-
KIOSK_VER := $(shell grep 'Version' ../kiosk/usbsas-kiosk/DEBIAN/control | cut -d' ' -f2)
8+
CORE_VER := $(shell grep '^version = ' ../usbsas-usbsas/Cargo.toml | cut -d'"' -f2)-1
9+
SRV_VER := $(shell grep '^version = ' ../usbsas-server/Cargo.toml | cut -d'"' -f2)-1
10+
ASRV_VER := $(shell grep '^version = ' ../usbsas-analyzer-server/Cargo.toml | cut -d'"' -f2)-1
11+
HID_VER := $(shell grep '^version = ' ../usbsas-hid/hid-dealer/Cargo.toml | cut -d'"' -f2)-1
12+
KIOSK_VER := $(shell grep '^version = ' ../usbsas-client/Cargo.toml | cut -d'"' -f2)-1
1313

1414
SU=sudo
1515

File renamed without changes.
File renamed without changes.
File renamed without changes.

client/python/Makefile renamed to python/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
all: proto/usbsas/proto3_pb2.py proto/common/proto3_pb2.py
22

3-
proto/%/proto3_pb2.py: ../../usbsas-proto/proto/%.proto3
3+
proto/%/proto3_pb2.py: ../usbsas-proto/proto/%.proto3
44
mkdir -p proto
5-
protoc --proto_path=../../usbsas-proto/proto \
5+
protoc --proto_path=../usbsas-proto/proto \
66
--python_out=proto \
77
$<
88
# fix import
File renamed without changes.

client/python/usbsas_transfer_example.py renamed to python/usbsas_transfer_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
from proto.usbsas import proto3_pb2 as proto_usbsas
2424

2525
usbsas_bin = "/usr/libexec/usbsas-usbsas"
26-
config_path = "../../config.example.toml"
26+
config_path = "../config.example.toml"
2727
date = datetime.datetime.now()
2828
pid_usbsas = -1
2929

3030
if not os.path.exists(usbsas_bin):
31-
usbsas_bin = "../../target/release/usbsas-usbsas"
31+
usbsas_bin = "../target/release/usbsas-usbsas"
3232
if not os.path.exists(usbsas_bin):
3333
print("usbsas-usbsas binary not found")
3434
sys.exit(1)

usbsas-client/Cargo.toml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
[package]
2+
name = "usbsas-client"
3+
version = "0.2.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
clap = "4.4"
8+
tao = "0.24"
9+
usbsas-sandbox = { path = "../usbsas-sandbox" }
10+
wry = { version = "0.35", default-features = false, features = ["os-webview", "fullscreen"] }
11+
12+
# cargo-deb
13+
[package.metadata.deb]
14+
name = "usbsas-kiosk"
15+
maintainer = "usbsas"
16+
copyright = "usbsas"
17+
revision = "1"
18+
depends = "$auto, usbsas-server, xserver-xorg-core, x11-xserver-utils, xinit, xdotool, unclutter, fonts-noto-color-emoji, fonts-lato"
19+
section = "utility"
20+
priority = "optional"
21+
maintainer-scripts = "debian/"
22+
systemd-units = { enable = false }
23+
assets = [
24+
["target/release/usbsas-client", "usr/bin/", "755"],
25+
["assets/usbsas-client-xinit", "usr/bin/", "755"],
26+
["web/*", "usr/share/usbsas/web/", "644"],
27+
["web/static/css/*", "usr/share/usbsas/web/static/css/", "644"],
28+
["web/static/js/*", "usr/share/usbsas/web/static/js/", "644"],
29+
["web/static/i18n/*", "usr/share/usbsas/web/static/i18n/", "644"],
30+
["web/static/img/*", "usr/share/usbsas/web/static/img/", "644"],
31+
["web/static/bs/css/*", "usr/share/usbsas/web/static/bs/css/", "644"],
32+
["web/static/bs/js/*", "usr/share/usbsas/web/static/bs/js/", "644"],
33+
["web/static/fontawesome/*", "usr/share/usbsas/web/static/fontawesome/", "644"],
34+
["web/static/fontawesome/css/*", "usr/share/usbsas/web/static/fontawesome/css/", "644"],
35+
["web/static/fontawesome/js/*", "usr/share/usbsas/web/static/fontawesome/js/", "644"],
36+
["web/static/fontawesome/less/*", "usr/share/usbsas/web/static/fontawesome/less/", "644"],
37+
["web/static/fontawesome/metadata/*", "usr/share/usbsas/web/static/fontawesome/metadata/*", "644"],
38+
["web/static/fontawesome/scss/*", "usr/share/usbsas/web/static/fontawesome/scss/", "644"],
39+
["web/static/fontawesome/sprites/*", "usr/share/usbsas/web/static/fontawesome/sprites/", "644"],
40+
["web/static/fontawesome/webfonts/*", "usr/share/usbsas/web/static/fontawesome/webfonts/", "644"],
41+
]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)