Skip to content

Commit

Permalink
feat: Add tip file for tips specific to config (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo authored Apr 29, 2024
1 parent d4ecc06 commit a9665d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/ublue-os-just/15-ublue-config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*Using full disk encryption and tired of entering your password?* `ujust setup-luks-tpm-unlock` can help you use your CPU's TPM to unlock your device.
*Need a container?* `ujust distrobox-assemble` can help you assmeble a new container image.
5 changes: 5 additions & 0 deletions build/ublue-os-just/ublue-os-just.spec
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Source20: libtoolbox.sh
Source21: toolbox.ini
Source22: 31-toolbox.just
Source23: brew.sh
Source24: 15-ublue-config.md

%global sub_name %{lua:t=string.gsub(rpm.expand("%{NAME}"), "^ublue%-os%-", ""); print(t)}

Expand All @@ -52,6 +53,9 @@ install -Dm755 %{SOURCE19} %{buildroot}%{_sysconfdir}/profile.d/user-motd.sh
install -Dm755 %{SOURCE23} %{buildroot}%{_sysconfdir}/profile.d/brew.sh
cp %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE22} %{buildroot}%{_datadir}/%{VENDOR}/%{sub_name}

mkdir -p -m0755 %{buildroot}%{_datadir}/%{VENDOR}/motd/tips
cp %{SOURCE24} %{buildroot}%{_datadir}/%{VENDOR}/motd/tips

# Create justfile which contains all .just files included in this package
# Apply header first due to default not working in included justfiles
cp %{SOURCE11} "%{buildroot}%{_datadir}/%{VENDOR}/justfile"
Expand Down Expand Up @@ -89,6 +93,7 @@ install -Dm644 %{SOURCE21} %{buildroot}/%{_sysconfdir}/toolbox
%attr(0755,root,root) %{_sysconfdir}/profile.d/brew.sh
%attr(0644,root,root) %{_datadir}/%{VENDOR}/%{sub_name}/*.just
%attr(0644,root,root) %{_datadir}/%{VENDOR}/justfile
%attr(0644,root,root) %{_datadir}/%{VENDOR}/motd/tips/*.md
%attr(0755,root,root) %{_bindir}/ujust
%attr(0755,root,root) %{_bindir}/ugum
%attr(0644,root,root) %{_exec_prefix}/lib/ujust/ujust.sh
Expand Down

0 comments on commit a9665d6

Please sign in to comment.