AvalonStudio icon indicating copy to clipboard operation
AvalonStudio copied to clipboard

Question: Snap package?

Open LiHRaM opened this issue 6 years ago • 8 comments

I read #552 and have a similar suggestion for Linux - snap packages. I tried the Ubuntu download on Elementary OS, haven't been able to get it to work yet. Maybe it would be easier for all distributions to quickly test the product if it is prepackaged in snap?

Loving this idea by the way. :)

LiHRaM avatar Feb 20 '18 21:02 LiHRaM

The problem with snaps is that they try to isolate the application from the rest of the system (actually, unlike flatpak, snapcraft does have a isolationless-mode, but it's still complicated to setup). Such isolation layer prevents the IDE from using system-wide libraries and utilities such as .NET Core SDK, Mono, various compiler toolchains (clang/gcc), etc.

The output of dotnet publish is portable enough, so it's preferable to ship the app as tar.gz with binaries.

kekekeks avatar Feb 20 '18 21:02 kekekeks

@LiHRaM thanks for feedback.

which Linux are you using.

you should be able to clone the repo and run the script /packages/package-debian.sh this will create a .deb package that is likely compatible with your os.

and you can install with sudo dpkg -i deb-build/[insert-package-name-here]

danwalmsley avatar Feb 20 '18 21:02 danwalmsley

btw we intend to auto publish the .deb packages soon! PRs are always welcome :)

danwalmsley avatar Feb 20 '18 21:02 danwalmsley

@kekekeks I'll admit, I had no idea. Thanks for the heads up.

@danwalmsley Alright! We're getting somewhere!

lihram@lihram:~/AvalonStudio/packages/deb-build$ apt search avalon-studio
Sorting... Done
Full Text Search... Done
avalon-studio/now 0.4.1 amd64 [installed,local]
  Super awesome cross-platform IDE.

It wouldn't make the deb package, because it said v0.4.1 does not start with a number. EDIT: dpkg-deb: error: parsing file '/home/lihram/AvalonStudio/packages/deb-build/avalon-studio_v0.4.2/DEBIAN/control' near line 2 package 'avalon-studio': error in 'Version' field string 'v0.4.2': version number does not start with digit There seem to be some problems with the installation. It does, for example, not place the executable in the /opt/vital...etc folder.

Second edit: This is the output I get, once I've manually set the version number to 0.4.2:

./package-debian.sh: 8: ./package-debian.sh: pushd: not found
Microsoft (R) Build Engine version 15.5.180.51428 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.
./package-debian.sh: 10: ./package-debian.sh: popd: not found
cp: cannot stat '/home/lihram/AvalonStudio/packages/../AvalonStudio/AvalonStudio/bin/Release/netcoreapp2.0/debian.8-x64/publish/.': No such file or directory
/home/lihram/AvalonStudio/packages
'deb/DEBIAN/control' -> '/home/lihram/AvalonStudio/packages/deb-build/avalon-studio_v0.4.2/DEBIAN/control'
'deb/rootfs/./usr/share/applications/avalon-studio.desktop' -> '/home/lihram/AvalonStudio/packages/deb-build/avalon-studio_v0.4.2/./usr/share/applications/avalon-studio.desktop'
chmod: cannot access '/home/lihram/AvalonStudio/packages/deb-build/avalon-studio_v0.4.2/opt/vitalelement/avalonstudio/bin/native/unix/clang-format': No such file or directory
dpkg-deb: building package 'avalon-studio' in '/home/lihram/AvalonStudio/packages/deb-build/avalon-studio_v0.4.2.deb'.

Third edit: I ran ~/AvalonStudio$ sudo bash packages/package-debian.sh and it seemed to run okay for a while. After a whole bunch of output, the very last was this:

cp: cannot stat '/home/lihram/AvalonStudio/../AvalonStudio/AvalonStudio/bin/Release/netcoreapp2.0/debian.8-x64/publish/.': No such file or directory
/home/lihram/AvalonStudio
cp: cannot stat 'deb/DEBIAN': No such file or directory
cp: cannot stat 'deb/rootfs/.': No such file or directory
sed: can't read /home/lihram/AvalonStudio/deb-build/avalon-studio_v0.4.2/DEBIAN/control: No such file or directory
chmod: cannot access '/home/lihram/AvalonStudio/deb-build/avalon-studio_v0.4.2/opt/vitalelement/avalonstudio/bin/native/unix/clang-format': No such file or directory
cp: cannot stat '/home/lihram/AvalonStudio/../AvalonStudio/AvalonStudio/Assets/logo-256.png': No such file or directory
dpkg-deb: error: failed to open package info file '/home/lihram/AvalonStudio/deb-build/avalon-studio_v0.4.2/DEBIAN/control' for reading: No such file or directory

LiHRaM avatar Feb 20 '18 22:02 LiHRaM

@danwalmsley I wasn't able to get this running on my Windows PC either... any help would be appreciated, although I should maybe refer to that in a different issue?

LiHRaM avatar Feb 21 '18 13:02 LiHRaM

@LiHRaM sorry you havnt been able to get it to run yet!

On windows did you build your self or just try to run the executables. Perhaps you could contact me on gitter and I can assist you more easily?

https://gitter.im/VitalElement/AvalonStudio

you can login with your github account, im usually around.

danwalmsley avatar Feb 21 '18 17:02 danwalmsley

@LiHRaM are on master or develop?

danwalmsley avatar Feb 21 '18 18:02 danwalmsley

UPDATE: I talked to @danwalmsley on Gitter and was able to get it up and running on my Windows computer. Still working on getting it to run correctly on my linux distro.

(I had issues with submodules not updating correctly, see #555, maybe)

LiHRaM avatar Feb 22 '18 10:02 LiHRaM