Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmder installer/updater? we have a solution! #1818

Closed
2 of 3 tasks
mouuff opened this issue Jun 16, 2018 · 6 comments
Closed
2 of 3 tasks

cmder installer/updater? we have a solution! #1818

mouuff opened this issue Jun 16, 2018 · 6 comments
Labels
👀 Awaiting Response Waiting to hear back from the issue reporter. 📖 Documentation

Comments

@mouuff
Copy link

mouuff commented Jun 16, 2018

Purpose of the issue

  • Bug report (encountered problems/errors)
  • Feature request (request for new functionality)
  • Question

Description of the issue

Hello, we are a team of students (3rd year in master computer engineering school in France)
We are currently working on a easy to setup installer/updater, which could be used for cmder.
The project is named Quail, it is hosted here: https://github.com/QuailTeam/Quail
Currently the project is in development stage, and we are looking for projects like yours, to use our solution, and get feedbacks from your community and your team.
We are going to work on that project for at least the next 2 years. (part time)
We started this project months ago. Today we believe we have came to a point where it could be released in alpha version.
The configuration required to build an installer is that easy:

import quail

quail.run(
    solution=quail.SolutionGitHub("cmder_mini.zip", "https://github.com/cmderdev/cmder"),
    installer=quail.Installer(
        name='Cmder',
        icon='Cmder.exe',
        binary='Cmder.exe',
        console=False
    ),
    builder=quail.builder.Builder(
        quail.builder.CmdIcon('icon.ico'),
        quail.builder.CmdNoconsole()
    ),
    controller=quail.ControllerTkinter()
)

This is already working with cmdr, just click on the generated binary and cmder will be installed, registered on windows control panel, and with a desktop icon.
You can test it here:
https://drive.google.com/open?id=1h2NlKftvb5apdDcLmqt_ywQxmDDD_EPU

This is much easier than asking users to download a zip, unzip to a folder, create shortcut themselves, and do the process over and over again each update.
And on your side the setup is quite easy, and we have a one-liner to generate the installer binary.

Today it quail can already retrieve solutions on github, but not update yet, (update system should come in the next 3 months, probably less)
Also we are currently working a Ui (which should also come in the next months), but we believe cmder users wont be scared to see a terminal for the installation process.

Understand that we are not asking you to use quail tomorrow.
We have opened this issue to talk with you and see if you are open to such projects.
And if you are ready to use quail, we will always be ready to help you with it as fast as possible, even implement new features.

@mouuff
Copy link
Author

mouuff commented Jun 24, 2018

I have updated the demo binary with our current user interface. (WIP)
The auto-update feature already works but it slows down the launch time by 2-5 seconds. This is why we chose to disable it for this demo.
(We will probably check for updates in background in the future)
https://drive.google.com/open?id=1h2NlKftvb5apdDcLmqt_ywQxmDDD_EPU

@xaoseric
Copy link

xaoseric commented Jun 26, 2018

I have an nsis solution that downloads the latest release from github, you build it using the build.js file if you want to take a look at that. Perhaps using the nsis installer might work better for windows?

https://github.com/XAOS-Interactive/cmder_inst

@stale
Copy link

stale bot commented May 25, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contribution.

@stale stale bot added the 👀 Awaiting Response Waiting to hear back from the issue reporter. label May 25, 2019
@mouuff
Copy link
Author

mouuff commented May 27, 2019

The project is now in beta, you can get the release on PIP and I have made a iquail config for cmder:

#!/usr/bin/python3

import iquail

if not iquail.helper.OS_WINDOWS:
    raise AssertionError("This test solution is windows only")


class FrameSelectMiniOrFull(iquail.controller_tkinter.FrameBaseConfigure):
    def __init__(self, parent, controller):
        super().__init__(parent, controller)
        self.version_selected = self.add_combobox("Which version would you like to install?",
                                                  ('Full', 'Mini'))

    def next_pressed(self):
        print(self.version_selected.get())
        version = self.version_selected.get().lower()
        zip = "cmder_mini.zip" if version == "mini" else "cmder.zip"
        self.manager.config.set("zip_url", zip)
        self.controller.switch_to_install_frame()


iquail.run(
    solution=iquail.SolutionGitHub(iquail.ConfVar("zip_url"), "https://github.com/cmderdev/cmder"),
    installer=iquail.Installer(
        publisher='cmderdev',
        name='Cmder',
        icon='Cmder.exe',
        binary='Cmder.exe',
        console=False,
        launch_with_quail=True
    ),
    builder=iquail.builder.Builder(
        iquail.builder.CmdIcon('icon.ico'),
        iquail.builder.CmdNoconsole()
    ),
    controller=iquail.ControllerTkinter(install_custom_frame=FrameSelectMiniOrFull)
)

@stale stale bot removed the 👀 Awaiting Response Waiting to hear back from the issue reporter. label May 27, 2019
@stale
Copy link

stale bot commented Jun 27, 2019

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in a week if no further activity occurs. Thank you for your contribution(s).

@stale stale bot added the 👀 Awaiting Response Waiting to hear back from the issue reporter. label Jun 27, 2019
@stale
Copy link

stale bot commented Jul 4, 2019

This issue has been automatically closed due to it not having any activity since it was marked as stale. Thank you for your contribution(s).

@stale stale bot closed this as completed Jul 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👀 Awaiting Response Waiting to hear back from the issue reporter. 📖 Documentation
Projects
None yet
Development

No branches or pull requests

4 participants