Skip to content

Commit

Permalink
feat: add dufs (web file browser)
Browse files Browse the repository at this point in the history
  • Loading branch information
goweiwen committed Dec 18, 2023
1 parent 582239a commit abce1ce
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "third-party/RetroArch"]
path = third-party/RetroArch
url = https://github.com/goweiwen/RetroArch.git
[submodule "third-party/dufs"]
path = third-party/dufs
url = https://github.com/sigoden/dufs.git
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ members = [
"show",
"show-hotkeys",
]
exclude = [
"third-party/dufs"
]
resolver = "2"

# Following: https://github.com/johnthagen/min-sized-rust
Expand Down
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ DIST_DIR := dist
RETROARCH := third-party/RetroArch
TOOLCHAIN := mholdg16/miyoomini-toolchain:latest

CROSS_TARGET_TRIPLE := arm-unknown-linux-gnueabihf

PLATFORM := $(shell uname -m)
ifeq ($(PLATFORM),arm64)
export CROSS_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_IMAGE_TOOLCHAIN = aarch64-unknown-linux-gnu
Expand Down Expand Up @@ -41,7 +43,7 @@ third-party/my283:
rm third-party/my283.tar.xz

build: third-party/my283
cross build --release --features=miyoo --bin=alliumd --bin=allium-launcher --bin=allium-menu --bin=activity-tracker --bin=screenshot --bin=say --bin=show --bin=show-hotkeys --bin=myctl
cross build --release --target=$(CROSS_TARGET_TRIPLE) --features=miyoo --bin=alliumd --bin=allium-launcher --bin=allium-menu --bin=activity-tracker --bin=screenshot --bin=say --bin=show --bin=show-hotkeys --bin=myctl

package-build:
mkdir -p $(DIST_DIR)/.allium/bin
Expand Down Expand Up @@ -75,6 +77,10 @@ package-retroarch: retroarch
$(RETROARCH)/retroarch:
docker run --rm -v /$(ROOT_DIR)/third-party:/root/workspace $(TOOLCHAIN) bash -c "source /root/.bashrc; cd RetroArch; make clean all ADD_NETWORKING=1 PACKAGE_NAME=retroarch"

dufs:
cd third-party/dufs && cross build --release --target=$(CROSS_TARGET_TRIPLE)
cp "third-party/dufs/target/release/$(CROSS_TARGET_TRIPLE)/dufs" "$(DIST_DIR)/.allium/bin/"

lint:
cargo fmt
cargo clippy --fix --allow-dirty --allow-staged --all-targets
Expand Down
1 change: 1 addition & 0 deletions third-party/dufs
Submodule dufs added at 598844

0 comments on commit abce1ce

Please sign in to comment.