Giter Club home page Giter Club logo

Comments (14)

sikmir avatar sikmir commented on May 20, 2024 3

localsend is available on NixOS as well now.

from localsend.

Tienisto avatar Tienisto commented on May 20, 2024 2

Hi thanks! I will take a look.

from localsend.

TheLastGimbus avatar TheLastGimbus commented on May 20, 2024 2

Will it just work if I publish the result from flutter build linux

Yeah, that's how localsend-bin would work ๐Ÿ‘

Just upload .tar.gz to releases, name them nicely with v{semantic.version.ing}, and use it as source

Then few lines in package() to install .desktop files and you're good

again, look up how spotube does it: https://github.com/KRTirtho/spotube/blob/master/aur-struct/PKGBUILD

He got it a bit more complicated - if you want, to you can do it simillary to me - for example, i just get the version with grep: https://github.com/TheLastGimbus/GooglePhotosTakeoutHelper/blob/3a0d48e8555ab0c20c8da12424d43bb7888f4516/scripts/gen-pkgbuild.bash?rgh-link-date=2023-01-28T12%3A09%3A14Z#L5

gtk-something

Mmm, i think only for development - spotube doesn't depend on it ๐Ÿ‘

from localsend.

Tienisto avatar Tienisto commented on May 20, 2024 2

Well, someone already published a package. I don't know if a real publisher is needed

from localsend.

TheLastGimbus avatar TheLastGimbus commented on May 20, 2024 2

Oh... interesting

Publishing straight from gh actions would definitely be faster, but maybe this guy is good enough ๐Ÿ‘

We can always email them if we wanted to take over ๐Ÿ’Œ

from localsend.

Nixuge avatar Nixuge commented on May 20, 2024 2

Discovered through trending too and figured out i'd made a quick AUR package (ended up making a -bin and a -git), if an actual maintainer of the project wants to take over or just make a better pkgbuild feel free to

from localsend.

Tienisto avatar Tienisto commented on May 20, 2024 1

Thanks for your inputs @TheLastGimbus , @RotationMatrix .

That's good to know. The solution by @RotationMatrix is good but it uses the latest flutter version instead of the version provided by fvm (3.3.10). In most cases, it works though.

Will it just work if I publish the result from flutter build linux? I think Flutter depends on gtk-something but I am not sure.

Some users have issues with the AppImage currently: #14, #30.

from localsend.

Tienisto avatar Tienisto commented on May 20, 2024 1

@Nixuge

Since v1.10.0, LocalSend also provides .tar.gz. Using this is more lightweight and it should provide faster startup times.

I recently migrated the flatpak to use .tar.gz: https://github.com/flathub/org.localsend.localsend_app

Maybe it is possible on Arch too? I don't know if you could fix the libayatana-appindicator issue though.

from localsend.

Nixuge avatar Nixuge commented on May 20, 2024 1

nothing I can do

More like nothing I can do except redistributing Debian's lib, which is something I'd really like to avoid (and something i'm not even sure i'm allowed to do)

If things remain like that for too much time will consider doing so anyways

from localsend.

msarkisian avatar msarkisian commented on May 20, 2024

I'd appreciate this a ton as well.
Thanks for the application!

from localsend.

RotationMatrix avatar RotationMatrix commented on May 20, 2024

I wrote this PKGBUILD for myself and it seems to work so far. Might be useful as a start. flutter needs to be installed from the AUR prior to building for it to work.

Thanks for writing this! I've been hoping for a cross-platform AirDrop alternative!

pkgname=localsend
pkgver=1.6.1
pkgrel=1
pkgdesc="An open source cross-platform alternative to AirDrop"
arch=('x86_64')
url="https://github.com/localsend/localsend"
license=('MIT')
groups=()
depends=()
makedepends=('flutter' 'dart')
optdepends=()
provides=('localsend')
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/localsend/localsend/archive/refs/tags/v$pkgver.tar.gz"
        "https://raw.githubusercontent.com/localsend/localsend/v$pkgver/LICENSE"
        "localsend.desktop")
noextract=()
sha256sums=('4515f8d6c9051f243cade3d7c6c659644b328aabae69530dc87634f56e1517c5'
            'c483a1de828cbeebce8c21aa0d66f23a5783cc381793f2ca5d172a9cd4ed8f4d'
            '82c33b4c5e56e78beb22c10ba122f51af51fee52c5ae1b665fd8e10053287e8f')

build() {
  cd "$pkgname-$pkgver"

  sed -i "s/collection: 1.16.0/collection: 1.17.0/" pubspec.yaml

  flutter pub get
  flutter pub run build_runner build
  flutter build linux
}

package() {
  cd "$pkgname-$pkgver"

  mkdir -p "$pkgdir/opt"
  cp -r build/linux/x64/release/bundle "$pkgdir/opt/$pkgname"

  install -Dm644 assets/img/logo-512.png "$pkgdir/usr/share/pixmaps/localsend.png"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm755 "$srcdir/localsend.desktop" "$pkgdir/usr/share/applications/localsend.desktop"
}

And the contents of localsend.desktop:

#!/usr/bin/env xdg-open
[Desktop Entry]
Categories=Internet;
Comment=An open source cross-platform alternative to AirDrop
Exec=/opt/localsend/localsend_app
Icon=localsend.png
MimeType=
Name=LocalSend
StartupWMClass=localsend_app
Terminal=false
Type=Application

from localsend.

TheLastGimbus avatar TheLastGimbus commented on May 20, 2024

Some notes if you're not familiar with arch/aur stuff @Tienisto

arch has a default repository, where all packages are (tl;dr) downloadable binaries, as they should be - but only long-lived trusted software gets there

so there's the aur, which doesn't contain any binaries themselves, but just PKGBUILD files, which are instructions for pacman on how to build a package

so, a package named localsend should contain pkgbuild that has flutter in makedepends (dependencies required to build, and then builds localsend itself. This is nice, but could potentially take hours for some users

so, there is a trend that you name a package yourpackage-bin, and pkgbuild for those just downloads the binaries from server

SO

the best for localsend would probably to also include linux.tar.gz versions of the app in the gh releases, and then tell pkgbuild to download and export it

๐Ÿ‘

from localsend.

RotationMatrix avatar RotationMatrix commented on May 20, 2024

it uses the latest flutter version instead of the version provided by fvm (3.3.10).

Ah, maybe that is why the build needed collection: 1.17.0 to work? I had a feeling the AUR flutter was newer than that used for LocalSend, but wasn't sure.

Will it just work if I publish the result from flutter build linux?

That would be perfect! Then we can eliminate the flutter build dependency altogether.

from localsend.

Nixuge avatar Nixuge commented on May 20, 2024

Hello @Tienisto, see https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=localsend-bin#n9
(Was about the deb but same problem w the targz)

Nothing I can do until either LocalSend or the lib on arch's repos gets fixed

from localsend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.