Skip to content

Commit

Permalink
Add windows installation TamtamHero#30
Browse files Browse the repository at this point in the history
  • Loading branch information
leopoldhub committed Jul 6, 2024
1 parent dc6558e commit 2047e54
Show file tree
Hide file tree
Showing 9 changed files with 493 additions and 3 deletions.
476 changes: 476 additions & 0 deletions install.bat

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ while true; do
done
#

SERVICES_DIR="./services"
SERVICES_DIR="./services/linux"
SERVICE_EXTENSION=".service"

SERVICES="$(cd "$SERVICES_DIR" && find . -maxdepth 1 -maxdepth 1 -type f -name "*$SERVICE_EXTENSION" -exec basename {} "$SERVICE_EXTENSION" \;)"
Expand Down
2 changes: 1 addition & 1 deletion post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ while true; do
done
#

SERVICES_DIR="./services"
SERVICES_DIR="./services/linux"
SERVICE_EXTENSION=".service"

SERVICES="$(cd "$SERVICES_DIR" && find . -maxdepth 1 -maxdepth 1 -type f -name "*$SERVICE_EXTENSION" -exec basename {} "$SERVICE_EXTENSION" \;)"
Expand Down
2 changes: 1 addition & 1 deletion pre-uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ while true; do
done
#

SERVICES_DIR="./services"
SERVICES_DIR="./services/linux"
SERVICE_EXTENSION=".service"

SERVICES="$(cd "$SERVICES_DIR" && find . -maxdepth 1 -maxdepth 1 -type f -name "*$SERVICE_EXTENSION" -exec basename {} "$SERVICE_EXTENSION" \;)"
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions services/windows/fw-fanctrl.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@setlocal

####PYTHON_PATH#### ".\fanctrl.py" %*
8 changes: 8 additions & 0 deletions services/windows/run-service.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@setlocal

@cd /d "%~dp0"

fw-fanctrl --run --config "####CONFIG_PATH####" --no-log & ectool autofanctrl

@echo "waiting 5 seconds before retrying..."
@timeout 5 > NUL
3 changes: 3 additions & 0 deletions uninstall.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cd /d "%~dp0"

.\install.bat /r

0 comments on commit 2047e54

Please sign in to comment.