forked from facebook/buck
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for LoginItems destination
Summary: Sandboxed macOS applications have specific requirements for launching on user login. Helped app should be placed under `App.app/Contents/Library/LoginItems`. This change will add new destination for this specific path Reviewed By: blackm00n fbshipit-source-id: 6dc7b24228ed90fcba10f571943e4192f65f0a9a
- Loading branch information
1 parent
0745246
commit cbd1efc
Showing
11 changed files
with
68 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
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
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
2 changes: 2 additions & 0 deletions
2
...facebook/buck/apple/testdata/bundle_with_resource_with_logintimes_destination/.buckconfig
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,2 @@ | ||
[repositories] | ||
root_cell = . |
24 changes: 24 additions & 0 deletions
24
...acebook/buck/apple/testdata/bundle_with_resource_with_logintimes_destination/BUCK.fixture
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,24 @@ | ||
apple_bundle( | ||
name = "bundle", | ||
binary = ":noop", | ||
extension = "bundle", | ||
info_plist = "Info.plist", | ||
deps = [ | ||
":file_resource", | ||
], | ||
) | ||
|
||
apple_binary( | ||
name = "noop", | ||
srcs = ["main.c"], | ||
) | ||
|
||
apple_resource( | ||
name = "file_resource", | ||
destination = "loginitems", | ||
dirs = [], | ||
files = [ | ||
"file.txt", | ||
], | ||
visibility = ["PUBLIC"], | ||
) |
6 changes: 6 additions & 0 deletions
6
.../facebook/buck/apple/testdata/bundle_with_resource_with_logintimes_destination/Info.plist
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,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
</dict> | ||
</plist> |
Empty file.
3 changes: 3 additions & 0 deletions
3
.../com/facebook/buck/apple/testdata/bundle_with_resource_with_logintimes_destination/main.c
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,3 @@ | ||
int main(int argc, char *argv[]) { | ||
return 0; | ||
} |