diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a18f42..e4e777c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,6 @@ jobs: env: SHELLCHECK_OPTS: --format=gcc - rubocop: runs-on: ubuntu-latest steps: diff --git a/Rakefile b/Rakefile index 8762be9..b996201 100644 --- a/Rakefile +++ b/Rakefile @@ -135,4 +135,5 @@ task :macos => [ :keka, :arduino, :mouse_trackpad, + :userscripts, ] diff --git a/lib/tasks/userscripts.rake b/lib/tasks/userscripts.rake new file mode 100644 index 0000000..b8ccc66 --- /dev/null +++ b/lib/tasks/userscripts.rake @@ -0,0 +1,8 @@ +task :userscripts => :files do + icloud_scripts_dir = Pathname('~/Library/Mobile Documents/com~apple~CloudDocs/com.userscripts.macos.Userscripts-Extension/Data/Documents/scripts').expand_path + icloud_scripts_dir.dirname.mkpath + + defaults 'com.userscripts.macos' do + write 'NSNavLastRootDirectory', icloud_scripts_dir.to_path + end +end diff --git a/~/Library/Containers/com.userscripts.macos.Userscripts-Extension/Data/Documents/scripts/Read Cask PR Notifications.js b/~/Library/Mobile Documents/com~apple~CloudDocs/com.userscripts.macos.Userscripts-Extension/Data/Documents/scripts/Read Cask PR Notifications.js similarity index 100% rename from ~/Library/Containers/com.userscripts.macos.Userscripts-Extension/Data/Documents/scripts/Read Cask PR Notifications.js rename to ~/Library/Mobile Documents/com~apple~CloudDocs/com.userscripts.macos.Userscripts-Extension/Data/Documents/scripts/Read Cask PR Notifications.js diff --git a/~/Library/Containers/com.userscripts.macos.Userscripts-Extension/Data/Documents/scripts/Show all Status Checks on GitHub.css b/~/Library/Mobile Documents/com~apple~CloudDocs/com.userscripts.macos.Userscripts-Extension/Data/Documents/scripts/Show all Status Checks on GitHub.css similarity index 100% rename from ~/Library/Containers/com.userscripts.macos.Userscripts-Extension/Data/Documents/scripts/Show all Status Checks on GitHub.css rename to ~/Library/Mobile Documents/com~apple~CloudDocs/com.userscripts.macos.Userscripts-Extension/Data/Documents/scripts/Show all Status Checks on GitHub.css