Comments (14)
localsend
is available on NixOS as well now.
from localsend.
Hi thanks! I will take a look.
from localsend.
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.
Well, someone already published a package. I don't know if a real publisher is needed
from localsend.
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.
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.
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.
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.
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.
I'd appreciate this a ton as well.
Thanks for the application!
from localsend.
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.
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.
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.
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)
- Feature request: Support IPv6 HOT 3
- Skip "done" step after the transfer on mobile
- Feature request: Allow setting multiple save location
- Send complete folder structure even when they are empty HOT 5
- Switch instead of drop-down menus HOT 1
- I hope the exe can automate the creation of a shortcut with autostart startup parameters and automatically add it to the startup item HOT 3
- Problem with the queue of sent files
- Automatic startup bug? HOT 5
- Feature request๏ผClipboard synchronization
- Unable to send mkv file (regardless of size) HOT 3
- support file/image transfer by pasting files from the clipboard. HOT 1
- Possible truncation of text when viewing error information
- Dimming the screen during long file transfers
- Support interruptions protocol HOT 1
- Android share prompt cancels current files HOT 1
- Files are sent unencrypted over HTTP when encryption is actually enabled in the settings HOT 4
- Feature request HOT 2
- adding more external entry poin please HOT 2
- The ability to hide the manufacturer or operating system of the device
- UI glitching on Galaxy Note 3 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from localsend.