Skip to content

Commit

Permalink
Remove logo.png, Add desktop file/logo impl for app launchers
Browse files Browse the repository at this point in the history
  • Loading branch information
Bims-sh committed Nov 15, 2023
1 parent 9edfb98 commit e22c7ee
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/miru-app*
/pkg/
/src/
13 changes: 12 additions & 1 deletion PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pkgver() {
echo $(git rev-list --count dev).$(git rev-parse --short dev)
}

prepare(){
prepare() {
cd $_pkgname

# Prepare Flutter
Expand All @@ -37,6 +37,14 @@ build() {
}

package() {
# Create missing directories
mkdir -p "$pkgdir/usr/share/icons"
mkdir -p "$pkgdir/usr/share/applications"

# Move icon and desktop entry to /usr/share
cp "$_pkgname/assets/icon/logo.png" "$pkgdir/usr/share/icons/miru.png"
cp "../Miru.desktop" "$pkgdir/usr/share/applications/Miru.desktop"

cd "$_pkgname/build/linux/x64/release/bundle/"

# Create target directories
Expand All @@ -45,6 +53,9 @@ package() {
# Copy the bundled output to /opt
cp -rdp --no-preserve=ownership . "$pkgdir/opt/$_pkgname/"

# Add license
cp "$srcdir/$_pkgname/LICENSE" "$pkgdir/usr/bin/LICENSE"

# Symlink to /usr/bin so the app can be found in PATH
ln -s "/opt/$_pkgname/miru" "$pkgdir/usr/bin/$_pkgname"
}
Binary file removed logo.png
Binary file not shown.

0 comments on commit e22c7ee

Please sign in to comment.