aleksey-hoffman / sigma-file-manager

"Sigma File Manager" is a free, open-source, quickly evolving, modern file manager (explorer / browser) app for Windows and Linux.
https://sigma-file-manager.vercel.app
Other
4.03k stars 149 forks source link

aur pack #173

Open CRAG666 opened 2 years ago

CRAG666 commented 2 years ago

Feature request:

I am an arch linux user and I would like your cool project to be installed there, the best option is to publish a package in aur

github-actions[bot] commented 2 years ago

Consider supporting the developer on Patreon to increase priority of all your issues, get access to private discord and other rewards.
Patreon page: https://www.patreon.com/sigma_file_manager

aleksey-hoffman commented 2 years ago

Thanks for the suggestion. I'm working on v1.5. I will try to build it on Arch Linux. I need to fix a few bugs before publishing it, because some thing still don't work properly on Linux

Nothing1024 commented 1 year ago

I'm trying to generate an AUR package using the following method, it might be helpful.

  1. Create the following two files: The file content refers to https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=picgo-appimage .

PKGBUILD

pkgname=sigma-file-manager-appimage
_ver=1.6.0
_mod=Linux-Debian
pkgver=${_ver}${_beta}
_release=${_ver}-${_mod}
#_release=${_ver}
pkgrel=1
epoch=1

pkgdesc="A free, open-source, quickly evolving, modern file manager (explorer / finder) app for Windows and Linux."
arch=('x86_64')
url="https://github.com/aleksey-hoffman/sigma-file-manager/"
license=('MIT')
noextract=("Sigma-File-Manager-${_release}.AppImage")
options=("!strip")
source=(
    "https://github.com/aleksey-hoffman/sigma-file-manager/releases/download/v${_ver}/Sigma-File-Manager-${_release}.AppImage"
    "https://raw.githubusercontent.com/aleksey-hoffman/sigma-file-manager/main/LICENSE.md"
    "https://raw.githubusercontent.com/aleksey-hoffman/sigma-file-manager/main/.github/media/logo-1024x1024.png"
    "./sigma-file-manager.desktop"
)
sha256sums=(
    'SKIP'
    'SKIP'
    'SKIP'
    'SKIP'
)

package() {
    install -Dm755 "Sigma-File-Manager-${_release}.AppImage" "${pkgdir}/opt/appimages/sigma-file-manager.AppImage"
    install -Dm644 "LICENSE.md" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
    install -Dm644 "sigma-file-manager.desktop"                    "${pkgdir}/usr/share/applications/sigma-file-manager.desktop"
    install -Dm644 "logo-1024x1024.png"                        "${pkgdir}/usr/share/icons/hicolor/128x128/apps/sigma-file-manager.png"
}

sigma-file-manager.desktop

[Desktop Entry]
Name=Sigma-File-Manager
Comment=A free, open-source, quickly evolving, modern file manager (explorer / finder) app for Windows and Linux.
Exec=env DESKTOPINTEGRATION=no "/opt/appimages/sigma-file-manager.AppImage" %U
Terminal=false
Type=Application
Icon=sigma-file-manager
X-AppImage-Version=2.2.2
X-AppImage-BuildId=1d6b527a-0ab1-42f8-8f83-95c539186de6
Categories=Utility;
Name[zh_CN.utf8]=sigma-file-manager.desktop
  1. Run command makepkg to generate the installation package.
  2. Run command sudo pacman -U sigma-file-manager-appimage-1:1.6.0-1-x86_64.pkg.tar.zst to install the package.

Currently everything is working normally.

Pakrohk commented 1 year ago

The appimage package available in aur is really large, isn't it better to make the project a little more modular and instead of appimage, put a build script with its prerequisites in aur?

The large size of 200MB of the aur package prevents it from being included in Chaotic-aur.

https://github.com/chaotic-aur/packages/issues/2377#issuecomment-1506110558

begin-theadventure commented 1 year ago

I made a bin package that repackages the AppImage: https://aur.archlinux.org/packages/sigma-file-manager-bin

begin-theadventure commented 1 year ago

instead of appimage, put a build script with its prerequisites in aur?

Perhaps building from source would be better for chaotic-aur.

aleksey-hoffman commented 1 year ago

@begin-theadventure thanks mate! I don't have arch installed, so I cannot tinker with it. Does arch only run bin packages and none of the popular linux extensions, or how does it work?

begin-theadventure commented 1 year ago

There are various packaging formats on Linux, such as distribution-dependent .deb, .rpm or distribution-independent .AppImage, Flatpak, Snap. In the case of my PKGBUILD, AppImage is extracted and then the files are properly packaged into Arch's .pkg.tar.zst format, AppImages can be used on Arch, but this way may be more convenient for some people.

I think this issue can be closed, as there are now two packages in the AUR.

aleksey-hoffman commented 1 year ago

@begin-theadventure thanks for the explanation.

The Linux version is still a bit rough, I want to spend more time developing it, now that I know a lot of people want to try SFM on Linux.

I almost fixed the problem with image thumbnails not working on Linux. Now I need to figure out why the drag and drop (drop event in particular) not working, along with probably 10 more Linux specific problems.

Hopefully once I finish rewriting the app, the new code base will look more appealing for other devs to tinker with it.