Git Product home page Git Product logo

Comments (12)

probonopd avatar probonopd commented on May 16, 2024 3

Made an experimental AppImage using https://github.com/AppImage/AppImages/blob/master/recipes/ZeroNet.yml which bundles Python, ZeroNet, and the required libraries all into one single file that a user can download and execute. Eventually Tor could also be bundled.

More testing is required. An AppImage for testing can be downloaded from
https://bintray.com/probono/AppImages/ZeroNet#files

If there is interest, it would be possible to make it work as part of the continuous Travis CI builds for HelloZeroNet/ZeroNet.

from zerobundle.

HelloZeroNet avatar HelloZeroNet commented on May 16, 2024 1

You should remove the
- wget -q "https://raw.githubusercontent.com/probonopd/ZeroNet/b8fb53ba2027a99285fc68015293263eb2376b29/src/Config.py" -O usr/share/zeronet/src/Config.py line from ZeroNet.yml as it overwrites the Config.py with an old version one

from zerobundle.

probonopd avatar probonopd commented on May 16, 2024 1

Any chance there will ever be an official AppImage? All the work has already been done...

from zerobundle.

Serkan-devel avatar Serkan-devel commented on May 16, 2024

Any updates on this?

from zerobundle.

HelloZeroNet avatar HelloZeroNet commented on May 16, 2024

It would be nice if someone could add a pull request to make it part of Travis CI script

from zerobundle.

probonopd avatar probonopd commented on May 16, 2024

When running, as of today,

wget https://raw.githubusercontent.com/AppImage/AppImages/master/pkg2appimage
bash -ex pkg2appimage ZeroNet

# AppImage got produced, now let's run it
./out/ZeroNet-git.d6b7159.glibc2.15-x86_64.AppImage 

then I am getting

[13:22:38] - Creating FileServer....
[13:22:38] TorManager Connecting to Tor Controller 127.0.0.1:9051
[13:22:38] TorManager Tor controller connect error: error: [Errno 111] Connection refused in TorManager.py line 170 > socket.py line 342
[13:22:38] TorManager Starting self-bundled Tor, due to Tor proxy port 127.0.0.1:9050 check error: No connection
[13:22:38] - Creating UiServer....
[13:22:38] - Unhandled exception: 'Config' object has no attribute 'ui_host'
Traceback (most recent call last):
  File "zeronet.py", line 19, in main
    main.start()
  File "/tmp/.mount_ZeroNeSISODL/usr/share/zeronet/src/main.py", line 504, in start
    actions.call(config.action, action_kwargs)
  File "/tmp/.mount_ZeroNeSISODL/usr/share/zeronet/src/main.py", line 157, in call
    func(**kwargs)
  File "/tmp/.mount_ZeroNeSISODL/usr/share/zeronet/src/main.py", line 167, in main
    ui_server = UiServer()
  File "/tmp/.mount_ZeroNeSISODL/usr/share/zeronet/src/Ui/UiServer.py", line 61, in __init__
    if config.ui_host:
AttributeError: 'Config' object has no attribute 'ui_host'
[13:22:38] - Unhandled exception
None
Traceback (most recent call last):
  File "zeronet.py", line 91, in <module>
    main()
  File "zeronet.py", line 64, in main
    traceback.print_exc(file=open(config.log_dir + "/error.log", "a"))
AttributeError: 'Config' object has no attribute 'log_dir'

Why? Can it be fixed?

from zerobundle.

probonopd avatar probonopd commented on May 16, 2024

Thanks, this works. So it should be a matter of running (e.g., in Travis CI, but outside a Docker container)

wget https://raw.githubusercontent.com/AppImage/AppImages/master/pkg2appimage
bash -ex pkg2appimage ZeroNet

# Then upload
./out/ZeroNet-*-x86_64.AppImage 

from zerobundle.

Serkan-devel avatar Serkan-devel commented on May 16, 2024

How long will it take until it gets official?

from zerobundle.

probonopd avatar probonopd commented on May 16, 2024

I don't know where to best hook this in...

from zerobundle.

adrelanos avatar adrelanos commented on May 16, 2024

@HelloZeroNet

It would be nice if someone could add a pull request to make it part of Travis CI script

@HelloZeroNet might be waiting for that?

from zerobundle.

HulaHoop0 avatar HulaHoop0 commented on May 16, 2024

@probonopd

Any chance you can pin the python dependencies by listing their sha256 hashes in the build file among other techniques to make the appimage reproducible? Please see how Electrum BTC wallet does this for inspiration: https://github.com/spesmilo/electrum/tree/master/contrib/build-linux/appimage

from zerobundle.

probonopd avatar probonopd commented on May 16, 2024

Hello @HulaHoop0 thanks for your suggestion. Please have a look at https://github.com/AppImage/pkg2appimage/blob/master/recipes/ZeroNet.yml, I think it is possible to do it there. Feel free to send a pull request if you can get it working. Unfortunately I don't have the time to look into it myself currently.

The YML format is described at https://github.com/AppImage/pkg2appimage/blob/master/YML.md.

from zerobundle.

Related Issues (14)

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.