-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently, we always use the `/` target, but other volumes can be provided as targets, as well as special targets like `CurrentUserHomeDirectory`. See `installer -help` for more info. In particular, if installing to `CurrentUserHomeDirectory` it seems reasonable to assume we wouldn't need `sudo`.
- Loading branch information
1 parent
4cf365f
commit e325dc6
Showing
4 changed files
with
78 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
.../Homebrew/test/support/fixtures/cask/Casks/with-pkg-target-current-user-home-directory.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
cask "with-pkg-target-current-user-home-directory" do | ||
version "1.2.3" | ||
sha256 "8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b" | ||
|
||
url "file://#{TEST_FIXTURE_DIR}/cask/MyFancyPkg.zip" | ||
homepage "https://brew.sh/fancy-pkg" | ||
|
||
pkg "MyFancyPkg/Fancy.pkg", target: "CurrentUserHomeDirectory" | ||
|
||
uninstall pkgutil: "my.fancy.package" | ||
end |
11 changes: 11 additions & 0 deletions
11
Library/Homebrew/test/support/fixtures/cask/Casks/with-pkg-target.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
cask "with-pkg-target" do | ||
version "1.2.3" | ||
sha256 "8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b" | ||
|
||
url "file://#{TEST_FIXTURE_DIR}/cask/MyFancyPkg.zip" | ||
homepage "https://brew.sh/fancy-pkg" | ||
|
||
pkg "MyFancyPkg/Fancy.pkg", target: "/Volumes/Macintosh HD2" | ||
|
||
uninstall pkgutil: "my.fancy.package" | ||
end |