Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
educg-net-22022-2210132
proj356 Dev-Env-Deploy -1887
Commits
7b0ed7df
Commit
7b0ed7df
authored
1 year ago
by
brucekomike
Browse files
Options
Download
Patches
Plain Diff
macos script update
parent
55606040
main
pipeline-test
0.2.0
0.1.0
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+1
-1
README.md
deploy-scripts/local/bin/osx-deploy.sh
+49
-2
deploy-scripts/local/bin/osx-deploy.sh
deploy-scripts/local/share/zsh-ps1-temp
+2
-0
deploy-scripts/local/share/zsh-ps1-temp
with
52 additions
and
3 deletions
+52
-3
README.md
+
1
−
1
View file @
7b0ed7df
# 开发环境快速部署脚本
## 目标平台
-
[
] MacOS 14.4 and later
-
[
x
] MacOS 14.4 and later
-
[ ] Windows 23H2 and later
-
[ ] Ubuntu 24.04 and later
-
[x] Arch (linux 6.8.9) and later
...
...
This diff is collapsed.
Click to expand it.
deploy-scripts/local/bin/osx-deploy.sh
+
49
−
2
View file @
7b0ed7df
...
...
@@ -14,12 +14,59 @@ function check_brew(){
function
install_packages
(){
CASK_PACKAGES
=
""
FORMULA_PACKAGES
=
""
###################
#this part for brew packages
###################
BASIC_PACKAGES
=
"zsh-completions nmap http-server keka"
IDE_PACKAGES
=
"android-studio godot visual-studio-code"
ADB_PACKAGES
=
"scrcpy android-platform-tools"
BROWSER_PACKAGES
=
"firefox google-chrome@beta"
OFFICE_PACKAGES
=
"libreoffice calibre"
DOCUMENT_PACKAGES
=
"xournal-plus-plus zettlr obsidian logseq appflowy"
WACOM_PACKAGES
=
"wacom-tablet"
MEDIA_PACKAGES
=
"kodi vlc"
VIDEO_PACKAGES
=
"olive kdenlive obs ffmpeg"
IMG_PACKAGES
=
"gimp macsvg krita inkscape"
AUDIO_PACKAGES
=
"audacity reaper sonic-pi pd blackhole-2ch blackhole-64ch musescore sonic-visualiser"
CONMMUNITY_PACKAGES
=
"discord element"
VM_PACKAGES
=
"utm"
MODELING_PACKAGES
=
"blender kicad freecad"
REMOTE_PACKAGES
=
"microsoft-remote-desktop netbird netbird-ui rustdesk"
SELECTED_PACKAGES
=
$(
dialog
--checklist
"Select brew packages to install:"
20 60 10
\
"BASIC_PACKAGES"
"Basic Packages"
on
\
"IDE_PACKAGES"
"IDE Packages"
on
\
"ADB_PACKAGES"
"ADB Packages"
on
\
"BROWSER_PACKAGES"
"Browser Packages"
on
\
"OFFICE_PACKAGES"
"Office Packages"
on
\
"DOCUMENT_PACKAGES"
"Document Packages"
on
\
"WACOM_PACKAGES"
"Wacom Packages"
on
\
"MEDIA_PACKAGES"
"Media Packages"
on
\
"VIDEO_PACKAGES"
"Video Packages"
on
\
"IMG_PACKAGES"
"Image Packages"
on
\
"AUDIO_PACKAGES"
"Audio Packages"
on
\
"CONMMUNITY_PACKAGES"
"Community Packages"
on
\
"VM_PACKAGES"
"VM Packages"
on
\
"MODELING_PACKAGES"
"Modeling Packages"
on
\
"REMOTE_PACKAGES"
"Remote Packages"
on
\
3>&1 1>&2 2>&3 3>&-
)
if
[
-z
"
$SELECTED_PACKAGES
"
]
;
then
echo
"No packages selected"
exit
1
fi
brew update
for
package
in
$SELECTED_PACKAGES
do
echo
$package
eval
"BREW_PACKAGES+=
\"
${
!package
}
\"
"
done
}
function
setup_shell_prompt
(){
CUSTOM_PS1
=
$(
cat
$SCRIPT_DIR
/share/zsh-ps1-temp
)
CUSTOM_PROMPT
=
"
\$
CUSTOM_PROMPT=
$(
get_user_input
"Enter your custom prompt"
)
"
echo
$CUSTOM_PS1
>>
~/.zshrc
echo
$CUSTOM_PROMPT
>>
~/.zshrc
}
function
main
(){
...
...
This diff is collapsed.
Click to expand it.
deploy-scripts/local/share/zsh-ps1-temp
0 → 100644
+
2
−
0
View file @
7b0ed7df
[%T][%n@%m][%~] $CUSTOM_NOTATION
%? ]%# >
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets