FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
CopilotForXcode/Script/MakeDSStore.sh at main · github/CopilotForXcode · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
github
/
CopilotForXcode
Public
Notifications
You must be signed in to change notification settings
Fork
2k
Star
6.3k
Code
Issues
234
Pull requests
0
Discussions
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
CopilotForXcode
/
Script
/
MakeDSStore.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
40 lines (30 loc) · 1.12 KB
Breadcrumbs
CopilotForXcode
/
Script
/
MakeDSStore.sh
Copy path
File metadata and controls
executable file
·
40 lines (30 loc) · 1.12 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!
/usr/bin/env bash
set
-e
#
Ensure we're in the root of the repo
cd
"
$(
dirname
"
$0
"
)
/..
"
#
Must have python3 installed
if
!
command
-v python3
&
>
/dev/null
then
echo
"
python3 could not be found. Install phyton3 and try again.
"
exit
1
fi
#
We need a volume with the background image in order to create the correct alias for it
mkdir -p build/image/.background
cp PackageAssets/background.png build/image/.background
hdiutil create -volname
"
GitHub Copilot for Xcode
"
-srcfolder build/image -format UDRW build/GitHubCopilotforXcode.dmg
hdiutil attach -readwrite build/GitHubCopilotforXcode.dmg
#
Create a python virtual environment
mkdir -p build/venv
python3 -m venv build/venv
#
Install ds-store
./build/venv/bin/pip install ds-store mac-alias==2.2.0 ds-store==1.3.0
./build/venv/bin/python Script/MakeDSStore.py
#
Run it
./build/venv/bin/python Script/MakeDSStore.py
#
Save the created .DS_Store file
cp
'
/Volumes/GitHub Copilot for Xcode/DSStore.template
'
PackageAssets/DSStore.template
#
Clean up
hdiutil detach
'
/Volumes/GitHub Copilot for Xcode
'
rm -rf build/GitHubCopilotforXcode.dmg
rm -rf build/image
rm -rf build/venv
Back
|
FazBrowse Home
|
New Git URL