Add Windows: firefox and scripts
This commit is contained in:
parent
136f089cc4
commit
76210537df
1 changed files with 30 additions and 6 deletions
36
Makefile
36
Makefile
|
@ -16,14 +16,17 @@ WSL = $(shell grep -c "WSL2" /proc/version)
|
||||||
MAKEFLAGS += --no-print-directory
|
MAKEFLAGS += --no-print-directory
|
||||||
|
|
||||||
# Location
|
# Location
|
||||||
|
WIN_USER = anri
|
||||||
PFx86 = /mnt/c/Program\ Files\ \(x86\)
|
PFx86 = /mnt/c/Program\ Files\ \(x86\)
|
||||||
|
WIN_HOME = /mnt/c/Users/$(WIN_USER)
|
||||||
|
APPDATA = $(WIN_HOME)/AppData/Roaming
|
||||||
CSGO = $(PFx86)/Steam/steamapps/common/Counter-Strike\ Global\ Offensive/csgo/cfg
|
CSGO = $(PFx86)/Steam/steamapps/common/Counter-Strike\ Global\ Offensive/csgo/cfg
|
||||||
|
|
||||||
all: full-sync
|
all: full-sync
|
||||||
|
|
||||||
# Pull latest changes
|
# Pull latest changes
|
||||||
refresh:
|
refresh:
|
||||||
@echo Pull latest changes from repository...
|
@echo "Pull latest changes from repository..."
|
||||||
@$(VC) pull
|
@$(VC) pull
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
|
@ -52,7 +55,7 @@ sync-dotconfig:
|
||||||
@$(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/.config/micro/settings.json -O $(HOME)/.config/micro/settings.json
|
@$(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/.config/micro/settings.json -O $(HOME)/.config/micro/settings.json
|
||||||
|
|
||||||
# END
|
# END
|
||||||
@echo .config directory synced!
|
@echo ".config directory synced!"
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
# .emacs.d
|
# .emacs.d
|
||||||
|
@ -62,7 +65,7 @@ sync-emacs:
|
||||||
@$(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/.emacs.d/init.el -O $(HOME)/.emacs.d/init.el
|
@$(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/.emacs.d/init.el -O $(HOME)/.emacs.d/init.el
|
||||||
|
|
||||||
# END
|
# END
|
||||||
@echo Emacs config synced!
|
@echo "Emacs config synced!"
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
# .dotfiles
|
# .dotfiles
|
||||||
|
@ -77,7 +80,7 @@ sync-dotfiles:
|
||||||
@$(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/dotfiles/.clang-format -O $(HOME)/.clang-format
|
@$(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/dotfiles/.clang-format -O $(HOME)/.clang-format
|
||||||
|
|
||||||
# End
|
# End
|
||||||
@echo dotfiles synced!
|
@echo "dotfiles synced!"
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
|
|
||||||
|
@ -87,7 +90,7 @@ sync-dotfiles:
|
||||||
sync:
|
sync:
|
||||||
# Check if at least the platform is supported
|
# Check if at least the platform is supported
|
||||||
ifneq (1, $(filter 1, $(ARCH) $(WSL)))
|
ifneq (1, $(filter 1, $(ARCH) $(WSL)))
|
||||||
@echo Unsupported platform
|
@echo "Unsupported platform"
|
||||||
else
|
else
|
||||||
|
|
||||||
# Call target of compatible with all supported platforms
|
# Call target of compatible with all supported platforms
|
||||||
|
@ -123,16 +126,37 @@ else ifeq ($(WSL), 1)
|
||||||
@mkdir -p $(HOME)/.unison
|
@mkdir -p $(HOME)/.unison
|
||||||
@$(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/.unison/default.prf -O $(HOME)/.unison/default.prf
|
@$(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/.unison/default.prf -O $(HOME)/.unison/default.prf
|
||||||
|
|
||||||
|
@echo "WSL synced!"
|
||||||
|
@echo
|
||||||
|
|
||||||
# Windows
|
# Windows
|
||||||
|
# Scripts
|
||||||
|
@$(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/windows/ctmpf.bat -O $(WIN_HOME)/Documents/Local/ctmpf.bat
|
||||||
|
@$(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/windows/spotx.bat -O $(WIN_HOME)/Documents/Local/spotx.bat
|
||||||
|
@$(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/windows/update.bat -O $(WIN_HOME)/Documents/Local/update.bat
|
||||||
|
@$(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/windows/fix_nvidia_wsl.bat -O $(WIN_HOME)/Documents/Local/fix_nvidia_wsl.bat
|
||||||
|
@echo "(Windows) Scripts synced!"
|
||||||
|
@echo
|
||||||
|
|
||||||
# CSGO
|
# CSGO
|
||||||
@if [ -d $(CSGO) ]; then \
|
@if [ -d $(CSGO) ]; then \
|
||||||
$(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/games/csgo/autoexec.cfg -O $(CSGO)/autoexec.cfg; \
|
$(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/games/csgo/autoexec.cfg -O $(CSGO)/autoexec.cfg; \
|
||||||
$(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/games/csgo/myconfig.cfg -O $(CSGO)/myconfig.cfg; \
|
$(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/games/csgo/myconfig.cfg -O $(CSGO)/myconfig.cfg; \
|
||||||
$(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/games/csgo/customgame.cfg -O $(CSGO)/customgame.cfg; \
|
$(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/games/csgo/customgame.cfg -O $(CSGO)/customgame.cfg; \
|
||||||
$(foreach d,$(filter-out "userdata",$(shell find $(PFx86)/Steam/userdata -maxdepth 1 -type d -printf "\"%f\" ")), $(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/games/csgo/video.txt -O $(PFx86)/Steam/userdata/$(d)/730/local/cfg/video.txt;) \
|
$(foreach d,$(filter-out "userdata",$(shell find $(PFx86)/Steam/userdata -maxdepth 1 -type d -printf "\"%f\" ")), $(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/games/csgo/video.txt -O $(PFx86)/Steam/userdata/$(d)/730/local/cfg/video.txt;) \
|
||||||
|
echo "(Windows) CS:GO synced!"; \
|
||||||
|
echo; \
|
||||||
fi
|
fi
|
||||||
|
# Firefox
|
||||||
|
@$(WGET) https://git.mylloon.fr/Anri/confOS/raw/branch/main/.mozilla/firefox/user.js -O $(APPDATA)/Mozilla/Firefox/Profiles/*.default-release/user.js
|
||||||
|
@echo "(Windows) Firefox synced!"
|
||||||
|
@echo
|
||||||
|
|
||||||
|
# END
|
||||||
|
@echo "Windows synced!"
|
||||||
|
@echo
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# END
|
# END
|
||||||
@echo 🎉 Sync complete!
|
@echo "🎉 Sync complete!"
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue