-
Notifications
You must be signed in to change notification settings - Fork 0
/
icons_rounded.sh
81 lines (61 loc) · 3 KB
/
icons_rounded.sh
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/usr/bin/env bash
echo "🦊 Create Gimp/Inkscape/Scribus/Synfig icon..."
# Ask for the administrator password upfront.
sudo -v
# Keep-alive: update existing `sudo` time stamp until the script has finished.
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
echo "Create Rounded icons"
sh _all_icon.sh design/export/icon_gimp_rounded.png gimp rounded
sh _all_icon.sh design/export/icon_inkscape_rounded.png inkscape rounded
sh _all_icon.sh design/export/icon_scribus_rounded.png scribus rounded
sh _all_icon.sh design/export/icon_synfig_rounded.png synfig rounded
sh _all_icon.sh design/export/icon_darktable_rounded.png darktable rounded
sh _all_icon.sh design/export/icon_shotcut_rounded.png shotcut rounded
sh _all_icon.sh design/export/icon_openshot_rounded.png openshot rounded
echo "Move Rounded icons"
sudo cp export/gimp/rounded/icon.icns /Applications/GIMP.app/Contents/Resources/gimp.icns
# scribus
sudo cp export/scribus/rounded/icon.icns /Applications/Scribus.app/Contents/Resources/Scribus.icns
# inkscape
sudo cp export/inkscape/rounded/icon.icns /Applications/Inkscape.app/Contents/Resources/inkscape.icns
sudo cp export/inkscape/rounded/icon.icns /Applications/Inkscape.app/Contents/Resources/icon.icns
sudo cp export/inkscape/rounded/icon.icns /Applications/Inkscape.app/Contents/Resources/Inkscape-Generic.icns
# synfig studio
cp export/synfig/rounded/icon.icns /Applications/SynfigStudio.app/Contents/Resources/SynfigStudio.icns
# OpenShot
cp export/openshot/rounded/icon.icns /Applications/OpenShot\ Video\ Editor.app/Contents/Resources/icon.icns
# Darktable
cp export/darktable/rounded/icon.icns /Applications/darktable.app/Contents/Resources/Icons.icns
# ShotCut
cp export/shotcut/rounded/icon.icns /Applications/Shotcut.app/Contents/Resources/shotcut.icns
# why is this not permitted
# cp: /Applications/GIMP.app/Contents/Resources/gimp.icns: Operation not permitted
# cp: /Applications/Scribus.app/Contents/Resources/Scribus.icns: Operation not permitted
# cp: /Applications/Inkscape.app/Contents/Resources/inkscape.icns: Operation not permitted
# cp: /Applications/Inkscape.app/Contents/Resources/icon.icns: Operation not permitted
# cp: /Applications/Inkscape.app/Contents/Resources/Inkscape-Generic.icns: Operation not permitted
# Force a relead
# Operation not permitted GIMP/Inkscape/Scribus
# GIMP
touch /Applications/GIMP.app
# scribus
touch /Applications/Scribus.app
# inkscape
touch /Applications/Inkscape.app
# synfig studio
touch /Applications/SynfigStudio.app
# OpenShot
touch /Applications/OpenShot\ Video\ Editor.app
# Darktable
touch /Applications/darktable.app
# ShotCut
touch /Applications/Shotcut.app
# restart Finder and Dock
sudo killall Finder
sudo killall Dock
# sudo mv /Applications/Inkscape.app /Users/matthijskamstra/Downloads/
# sudo chown -R :admin /Users/matthijskamstra/Downloads/Inkscape.app
# sudo chmod -R 755 /Users/matthijskamstra/Downloads/Inkscape.app
# # sudo mv /Users/matthijskamstra/Downloads/Inkscape.app /Applications/
echo "Icons set"
echo "-End"