From c9f14b9d4db2edad0eb4953477a7f53226e62c21 Mon Sep 17 00:00:00 2001 From: enggnr <129082112+enggnr@users.noreply.github.com> Date: Fri, 15 Dec 2023 20:33:18 +0530 Subject: [PATCH] Update application backup settings --- software.yml | 86 +++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 62 insertions(+), 24 deletions(-) diff --git a/software.yml b/software.yml index d854e82d..83685100 100644 --- a/software.yml +++ b/software.yml @@ -423,7 +423,9 @@ softwarePackages: _link:cask: - src: "${XDG_CONFIG_HOME:-$HOME/.config}/pieces-os" target: "$HOME/Library/Application Support/com.pieces.os" - _link:snap: 'TODO' + _link:snap: + - src: "${XDG_CONFIG_HOME:-$HOME/.config}/pieces-os" + target: "$HOME/snap/pieces-os/current" appinstaller: https://builds.pieces.app/stages/production/appinstaller/os_server.appinstaller cask: pieces-os exe: https://builds.pieces.app/stages/production/os_server/windows-exe/download @@ -527,7 +529,9 @@ softwarePackages: _link:cask: - src: "${XDG_CONFIG_HOME:-$HOME/.config}/Altair GraphQL Client" target: "$HOME/Library/Application Support/Altair GraphQL Client" - _link:choco: 'TODO' + _link:choco: + - src: "%APPDATA%/.config/Altair GraphQL Client" + target: "%APPDATA%/Altair GraphQL Client" _link:snap: - src: "${XDG_CONFIG_HOME:-$HOME/.config}/Altair GraphQL Client" target: "$HOME/snap/altair/current/.config/Altair GraphQL Client" @@ -602,9 +606,19 @@ softwarePackages: _name: Android Studio _app: Android Studio.app _link:cask: 'TODO' - _link:choco: 'TODO' - _link:flatpak: 'TODO' - _link:snap: 'TODO' + _link:choco: + - src: "%APPDATA%/.config/Google" + target: "%APPDATA%/Google" + _link:flatpak: + - src: "${XDG_CONFIG_HOME:-$HOME/.config}/Google/AndroidStudio2023.1" + target: "$HOME/.var/app/com.google.AndroidStudio/config/Google/AndroidStudio2023.1" + - src: "$HOME/.local/share/Google/consentOptions" + target: "$HOME/.var/app/com.google.AndroidStudio/data/Google/consentOptions" + _link:snap: + - src: "${XDG_CONFIG_HOME:-$HOME/.config}/Google/AndroidStudio2023.1" + target: "$HOME/.config/Google/AndroidStudio2023.1" + - src: "$HOME/.local/share/Google/consentOptions" + target: "$HOME/.local/share/Google/consentOptions" cask: android-studio choco: androidstudio flatpak: com.google.AndroidStudio @@ -1237,7 +1251,7 @@ softwarePackages: _github: false _name: Logi Options+ _app: logioptionsplus.app - _link:choco: 'TODO' + _link:choco: 'TODO - Installation fails, check again' _link:cask: - src: "${XDG_CONFIG_HOME:-$HOME/.config}/LogiOptionsPlus" target: "$HOME/Library/Application Support/LogiOptionsPlus" @@ -1929,8 +1943,12 @@ softwarePackages: _link:cask: - src: "${XDG_CONFIG_HOME:-$HOME/.config}/tor-browser" target: "$HOME/Library/Application Support/TorBrowser-Data/Tor" - _link:choco: 'TODO' - _link:flatpak: 'TODO' + _link:choco: + - src: "%APPDATA%/.config/tor-browser" + target: "%PROGRAMDATA%/chocolatey/lib/tor-browser/tools/tor-browser/Browser/TorBrowser/Data" + _link:flatpak: + - src: "${XDG_CONFIG_HOME:-$HOME/.config}/tor-browser" + target: "$HOME/.var/app/com.github.micahflee.torbrowser-launcher/data/torbrowser/tbb/x86_64/tor-browser/Browser/TorBrowser/Data/" cask: tor-browser choco: tor-browser flatpak: com.github.micahflee.torbrowser-launcher @@ -4234,12 +4252,12 @@ softwarePackages: if command -v gitomatic > /dev/null; then ### Copy bin to /usr/local/bin logg info "Copying $HOME/.local/bin/gitomatic-service to /usr/local/bin/gitomatic-service" && sudo cp -f "$HOME/.local/bin/gitomatic-service" /usr/local/bin/gitomatic-service - + ### Copy gitomatic to global directory if [ ! -f /usr/local/bin/gitomatic ]; then logg info 'Copying gitomatic executable to /usr/local/bin/gitomatic' && sudo cp -f "$(which gitomatic)" /usr/local/bin/gitomatic fi - + if [ -d /Applications ] && [ -d /System ]; then ### macOS logg info 'Copying gitomatic plist file to /Library/LaunchDaemons' && sudo cp -f "${XDG_CONFIG_HOME:-$HOME/.config}/gitomatic/com.github.muesli.gitomatic.plist" /Library/LaunchDaemons/com.github.muesli.gitomatic.plist @@ -5840,7 +5858,9 @@ softwarePackages: _link:cask: - src: "${XDG_CONFIG_HOME:-$HOME/.config}/Ferdium" target: "$HOME/Library/Application Support/Ferdium" - _link:choco: 'TODO' + _link:choco: + - src: "%APPDATA%/.config/Ferdium" + target: "%APPDATA%/Ferdium" _link:flatpak: - src: "${XDG_CONFIG_HOME:-$HOME/.config}/Ferdium" target: "$HOME/.var/app/org.ferdium.Ferdium/config/Ferdium" @@ -5886,9 +5906,15 @@ softwarePackages: _link:cask: - src: "${XDG_CONFIG_HOME:-$HOME/.config}/mailspring" target: "$HOME/Library/Application Support/Mailspring" - _link:choco: 'TODO' - _link:flatpak: 'TODO' - _link:snap: 'TODO' + _link:choco: + - src: "%APPDATA%/.config/Mailspring" + target: "%APPDATA%/Mailspring" + _link:flatpak: + - src: "${XDG_CONFIG_HOME:-$HOME/.config}/mailspring" + target: "$HOME/.var/app/com.getmailspring.Mailspring/config/Mailspring" + _link:snap: + - src: "${XDG_CONFIG_HOME:-$HOME/.config}/mailspring" + target: "$HOME/snap/mailspring/current/.config/Mailspring" cask: mailspring choco: mailspring flatpak: com.getmailspring.Mailspring @@ -5917,9 +5943,15 @@ softwarePackages: _link:cask: - src: "${XDG_CONFIG_HOME:-$HOME/.config}/marktext" target: "$HOME/Library/Application Support/marktext" - _link:choco: 'TODO' - _link:flatpak: 'TODO' - _link:winget: 'TODO' + _link:choco: + - src: "%APPDATA%/.config/marktext" + target: "%APPDATA%/marktext" + _link:flatpak: + - src: "${XDG_CONFIG_HOME:-$HOME/.config}/marktext" + target: "$HOME/.var/app/com.github.marktext.marktext/config/marktext" + _link:winget: + - src: "%APPDATA%/.config/marktext" + target: "%APPDATA%/marktext" cask: mark-text choco: marktext flatpak: com.github.marktext.marktext @@ -5993,8 +6025,12 @@ softwarePackages: _link:cask: - src: "${XDG_CONFIG_HOME:-$HOME/.config}/microsoft-edge/Default" target: "$HOME/Library/Application Support/Microsoft Edge/Default" - _link:choco: 'TODO' - _link:flatpak: 'TODO' + _link:choco: + - src: "%APPDATA%/.config/microsoft-edge/Default" + target: "%LOCALAPPDATA%/Microsoft/Edge/User Data/Default" + _link:flatpak: + - src: "${XDG_CONFIG_HOME:-$HOME/.config}/microsoft-edge/Default" + target: "$HOME/.var/app/com.microsoft.Edge/config/microsoft-edge/Default" cask: microsoft-edge choco: microsoft-edge flatpak: com.microsoft.Edge @@ -6810,7 +6846,9 @@ softwarePackages: _link:cask: - src: "${XDG_CONFIG_HOME:-$HOME/.config}/notion" target: "$HOME/Library/Application Support/Notion" - _link:choco: 'TODO' + _link:choco: + - src: "%APPDATA%/.config/notion" + target: "%APPDATA%/Notion" cask: notion choco: notion mas: 1559269364 @@ -9257,7 +9295,7 @@ softwarePackages: _home: https://github.com/skeeto/endlessh _name: Endlessh _service: endlessh - _post: | + _post: | # @file Endlessh Configuration # @brief Applies the Endlessh configuration and starts the service on Linux systems # @description @@ -10257,7 +10295,7 @@ softwarePackages: # ## Links # # * [Privoxy configuration](https://github.com/megabyte-labs/install.doctor/tree/master/home/dot_config/privoxy/config) - + ### Define the Privoxy configuration location based on whether system is macOS or Linux if [ -d /Applications ] && [ -d /System ]; then ### macOS @@ -10283,7 +10321,7 @@ softwarePackages: sudo add-usergroup "$USER" privoxy fi sudo chown privoxy:privoxy "$PRIVOXY_CONFIG" 2> /dev/null || sudo chown privoxy:$(id -g -n) "$PRIVOXY_CONFIG" - + ### Restart Privoxy after configuration is applied if [ -d /Applications ] && [ -d /System ]; then ### macOS @@ -11150,7 +11188,7 @@ softwarePackages: # ## Links # # * [`fail2ban` configuration folder](https://github.com/megabyte-labs/install.doctor/tree/master/home/private_dot_ssh/fail2ban) - + ### Notify of script start logg info 'Configuring fail2ban'