simple icon indicating copy to clipboard operation
simple copied to clipboard

Single Command Installer

Open appcypher opened this issue 7 years ago • 19 comments

This is a rustup-like or choosenim-like installation process where the user doesn't need to have simple already installed on their system. Just a single command that does all the installation and/or update automatically.

The user just types a command into the terminal and simple gets installed or updated automatically. A seamless nice user experience.

The command is usually in this format.

curl https://sh.some-domain.com/install -sSf | sh

This means the shell script that gets run will be hosted on that site and the script will be responsible for downloading and installing simple on the user's system.

The first step here is to host an installer script online.

appcypher avatar Jul 14 '18 09:07 appcypher

Great. I'll also be working on it.

Youngestdev avatar Jul 14 '18 09:07 Youngestdev

The online host could be a VPS, cloud server or even ftp. This is really a medium task 😃😃

Youngestdev avatar Jul 14 '18 10:07 Youngestdev

simple-lang can be upgrade with

$ modular -u

The modular app will be responsible for modules install and upgrade too. The upgrade feature as been tested with windows and a localhost and it works perfectly, will soon be tested on linux too.

@Youngestdev the online host is currently sourceforge.net as they provide a free web hosting package for project, it also allow statistic logging of project and also support cgi hosting, but that till the actual website is on.

Modular is the main feature that is to be very well done for the next release so a download of simple-lang wont be needed and the modular can do the upgrade and installation it self

Thecarisma avatar Jul 14 '18 10:07 Thecarisma

For online script installer will be looked into it will be a nice way to install simple-lang without prior installation of simple-lang on the system such as using apt-get

Thecarisma avatar Jul 14 '18 10:07 Thecarisma

i went over choosenim-like and the method is pretty straight forward, this issue will be taken over above other issues first and it will be resolve in few hours. Learnt something new never know remote script could be executed

Thecarisma avatar Jul 14 '18 10:07 Thecarisma

Lol, not surprised you said this is new . You're a new Unix user 😃

Youngestdev avatar Jul 14 '18 10:07 Youngestdev

Seems like everyone wants to work on it, but I see the task has been assigned to @Thecarisma. @Thecarisma Do you have a Unix OS to test it on?

appcypher avatar Jul 14 '18 14:07 appcypher

Well, he assigned it to himself.. He just installed an Ubuntu OS tho. If he can work on it, he can share it so we all test it instead of everyone working on it . Your thoughts @appcypher ?

Youngestdev avatar Jul 14 '18 14:07 Youngestdev

Makes sense

appcypher avatar Jul 14 '18 14:07 appcypher

Great. :+1:. I'm currently working on the docs 😃

Youngestdev avatar Jul 14 '18 14:07 Youngestdev

@appcypher it will be greater if you can work on it as i am resolving other issue the reason i want to work on it was because it very important.

Thecarisma avatar Jul 14 '18 15:07 Thecarisma

I will look into this. But I'm more interested in making simplebridge work with the vscode extension currently;

appcypher avatar Jul 15 '18 08:07 appcypher

Then I'll try see if I can work with the installer.

Youngestdev avatar Jul 15 '18 08:07 Youngestdev

There's an update on this from @Thecarisma. It'll be rolled out Publicly soon enough as it's under test

Cheers :tada:

Youngestdev avatar Jul 18 '18 19:07 Youngestdev

The installer script has been created and tested on the OSes Windows amd64 (curl mingw) Ubuntu amd64 (curl) Lubuntu i386 (curl)

simple lang can be installed from the terminal line using the following command

curl https://simple-lang.sourceforge.io/api/shinstall.sh -sSf | sh

@appcypher review

Thecarisma avatar Aug 19 '18 09:08 Thecarisma

How is this going? This still doesn't work for Mac.

appcypher avatar Sep 14 '18 12:09 appcypher

This work for Linux and Windows as tested, it has not been tested on MAC yet

Thecarisma avatar Sep 14 '18 16:09 Thecarisma

You can craft out a new script for MAC

Thecarisma avatar Sep 14 '18 16:09 Thecarisma

Unfortunately, it doesn't work for my Linux.

On Sep 14, 2018 17:19, "A Toy Soldier" [email protected] wrote:

You can craft out a new script for MAC

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/simple-lang/simple/issues/24#issuecomment-421410076, or mute the thread https://github.com/notifications/unsubscribe-auth/Adkrjy1c0awe2RVkES6C8vnBMREal9lNks5ua9cSgaJpZM4VPzXJ .

Youngestdev avatar Sep 14 '18 17:09 Youngestdev