-
Notifications
You must be signed in to change notification settings - Fork 527
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated .gitignore and automated setup procedure (#3943)
* Added local property condition for M1 Mac * Added comment * Improved some Contributor Experience * NIT * Fixed command only for darwin * NIT * seperated the script, removed misc and run configurations * added EOF * Update scripts/buf_m1_mac_setup.sh Co-authored-by: Akshay Nandwana <[email protected]> * Updated .gitignore to only track particular files Co-authored-by: Akshay Nandwana <[email protected]>
- Loading branch information
1 parent
65f04b7
commit 7465b0b
Showing
5 changed files
with
17 additions
and
31 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
#!/bin/bash | ||
|
||
# Setup protobuf platform for M1 Mac | ||
arch_name="$(uname -m)" | ||
if [ "${arch_name}" = "x86_64" ] && [[ "$OSTYPE" == "darwin"* ]]; then | ||
if [ "$(sysctl -in sysctl.proc_translated)" = "1" ]; then | ||
echo 'protobuf_platform=osx-x86_64' >> ../oppia-android/local.properties | ||
echo 'Added protobuf platform to local properties.' | ||
fi | ||
fi |
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