-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathcustom-apps.just
More file actions
80 lines (71 loc) · 2.79 KB
/
custom-apps.just
File metadata and controls
80 lines (71 loc) · 2.79 KB
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
# vim: set ft=make :
####################
### custom-apps.just
####################
## Example application installation commands
## These are simplified examples adapted from Bluefin
# Install default applications via Homebrew
[group('Apps')]
install-default-apps:
#!/usr/bin/env bash
echo "Installing default applications via Homebrew..."
brew bundle --file /usr/share/ublue-os/homebrew/default.Brewfile
# Install development tools via Homebrew
[group('Apps')]
install-dev-tools:
#!/usr/bin/env bash
echo "Installing development tools via Homebrew..."
brew bundle --file /usr/share/ublue-os/homebrew/development.Brewfile
# Install fonts via Homebrew
[group('Apps')]
install-fonts:
#!/usr/bin/env bash
echo "Installing fonts via Homebrew..."
brew bundle --file /usr/share/ublue-os/homebrew/fonts.Brewfile
# Install all Brewfiles at once
[group('Apps')]
install-all-brew:
#!/usr/bin/env bash
echo "Installing all applications from Brewfiles..."
brew bundle --file /usr/share/ublue-os/homebrew/default.Brewfile
brew bundle --file /usr/share/ublue-os/homebrew/development.Brewfile
brew bundle --file /usr/share/ublue-os/homebrew/fonts.Brewfile
# Install JetBrains Toolbox for managing JetBrains IDEs
[group('Apps')]
install-jetbrains-toolbox:
#!/usr/bin/env bash
echo "Installing JetBrains Toolbox..."
pushd "$(mktemp -d)"
echo "Fetching latest version..."
curl -sSfL -o releases.json "https://data.services.jetbrains.com/products/releases?code=TBA&latest=true&type=release"
BUILD_VERSION=$(jq -r '.TBA[0].build' ./releases.json)
DOWNLOAD_LINK=$(jq -r '.TBA[0].downloads.linux.link' ./releases.json)
CHECKSUM_LINK=$(jq -r '.TBA[0].downloads.linux.checksumLink' ./releases.json)
echo "Installing JetBrains Toolbox ${BUILD_VERSION}"
curl -sSfL -O "${DOWNLOAD_LINK}"
curl -sSfL "${CHECKSUM_LINK}" | sha256sum -c
tar zxf jetbrains-toolbox-"${BUILD_VERSION}".tar.gz
mkdir -p $HOME/.local/share/JetBrains/ToolboxApp/
mv jetbrains-toolbox-"${BUILD_VERSION}"/* $HOME/.local/share/JetBrains/ToolboxApp/
popd
echo "Launching JetBrains Toolbox..."
$HOME/.local/share/JetBrains/ToolboxApp/bin/jetbrains-toolbox
# Shortcut for install-jetbrains-toolbox
[group('Apps')]
jetbrains-toolbox:
@ujust install-jetbrains-toolbox
# Install a Flatpak application from Flathub
[group('Apps')]
install-flatpak APP_ID:
#!/usr/bin/bash
echo "Installing {{ APP_ID }} from Flathub..."
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install -y flathub {{ APP_ID }}
# Example: Install VSCode via Flatpak
[group('Apps')]
install-vscode:
ujust install-flatpak com.visualstudio.code
# Example: Install GIMP via Flatpak
[group('Apps')]
install-gimp:
ujust install-flatpak org.gimp.GIMP