Discuss Scratch

DifferentDance8
Scratcher
1000+ posts

[Please help with Noml 0.3!] Noml -- The text editor --

__Falcon-Games__ wrote:

It's the Noml 0.3 release date today…
So does that mean Noml 0.3 is going to release?
__Falcon-Games__
Scratcher
1000+ posts

[Please help with Noml 0.3!] Noml -- The text editor --

DifferentDance8 wrote:

__Falcon-Games__ wrote:

It's the Noml 0.3 release date today…
So does that mean Noml 0.3 is going to release?
Well I was going to release Pulanger today so Noml 0.3 is likely going to be pushed back, I am not sure how we can implement all of the features in ONE DAY. I only did a bit of work on pages.
DifferentDance8
Scratcher
1000+ posts

[Please help with Noml 0.3!] Noml -- The text editor --

__Falcon-Games__ wrote:

DifferentDance8 wrote:

__Falcon-Games__ wrote:

It's the Noml 0.3 release date today…
So does that mean Noml 0.3 is going to release?
Well I was going to release Pulanger today so Noml 0.3 is likely going to be pushed back, I am not sure how we can implement all of the features in ONE DAY. I only did a bit of work on pages.
What the everloving frick even is Pulanger?
__Falcon-Games__
Scratcher
1000+ posts

[Please help with Noml 0.3!] Noml -- The text editor --

DifferentDance8 wrote:

__Falcon-Games__ wrote:

DifferentDance8 wrote:

__Falcon-Games__ wrote:

It's the Noml 0.3 release date today…
So does that mean Noml 0.3 is going to release?
Well I was going to release Pulanger today so Noml 0.3 is likely going to be pushed back, I am not sure how we can implement all of the features in ONE DAY. I only did a bit of work on pages.
What the everloving frick even is Pulanger?
Why should we be discussing that on Noml's thread? (It's a static web application framework which provides stuff like layouts and variable substitution while compiling to vanilla HTML, CSS, JS and Python with no dependencies)
MagicCrayon9342
Scratcher
1000+ posts

[Please help with Noml 0.3!] Noml -- The text editor --

For Linux and MacOS, a Makefile would be more suitable.

Last edited by MagicCrayon9342 (Oct. 15, 2023 15:34:05)

__Falcon-Games__
Scratcher
1000+ posts

[Please help with Noml 0.3!] Noml -- The text editor --

MagicCrayon9342 wrote:

For Linux and MacOS, a Makefile would be more suitable.
It's written in Python. Also how in the world did you find this topic?

Last edited by __Falcon-Games__ (Oct. 15, 2023 15:36:25)

MagicCrayon9342
Scratcher
1000+ posts

[Please help with Noml 0.3!] Noml -- The text editor --

__Falcon-Games__ wrote:

MagicCrayon9342 wrote:

For Linux and MacOS, a Makefile would be more suitable.
It's written in Python. Also how in the world did you find this topic?
It has nothing to do with what the program is written in, a Makefile is for compilation, installation, and uninstallation of programs. You can add
#!/usr/bin/env python3
to the top of the file, make it executable, and put it in /usr/bin (or I believe /usr/local/bin on MacOS) and it can simply be ran from any terminal no matter the current working directory. Do this with the make file, so that the user (if on Linux or MacOS) can simply run
make install
and the program will be installed. No need for installing additional dependencies just for the installer. I also recommend compiling the code to a single binary so that all dependencies are bundled instead of needing to be installed.
__Falcon-Games__
Scratcher
1000+ posts

[Please help with Noml 0.3!] Noml -- The text editor --

MagicCrayon9342 wrote:

__Falcon-Games__ wrote:

MagicCrayon9342 wrote:

For Linux and MacOS, a Makefile would be more suitable.
It's written in Python. Also how in the world did you find this topic?
It has nothing to do with what the program is written in, a Makefile is for compilation, installation, and uninstallation of programs. You can add
#!/usr/bin/env python3
to the top of the file, make it executable, and put it in /usr/bin (or I believe /usr/local/bin on MacOS) and it can simply be ran from any terminal no matter the current working directory. Do this with the make file, so that the user (if on Linux or MacOS) can simply run
make install
and the program will be installed. No need for installing additional dependencies just for the installer. I also recommend compiling the code to a single binary so that all dependencies are bundled instead of needing to be installed.
Okay but can you answer my second question?
__Falcon-Games__
Scratcher
1000+ posts

[Please help with Noml 0.3!] Noml -- The text editor --

__Falcon-Games__
Scratcher
1000+ posts

[Please help with Noml 0.3!] Noml -- The text editor --

Someone please help.
ajskateboarder
Scratcher
1000+ posts

[Please help with Noml 0.3!] Noml -- The text editor --

MagicCrayon9342 wrote:

__Falcon-Games__ wrote:

MagicCrayon9342 wrote:

For Linux and MacOS, a Makefile would be more suitable.
It's written in Python. Also how in the world did you find this topic?
It has nothing to do with what the program is written in, a Makefile is for compilation, installation, and uninstallation of programs. You can add
#!/usr/bin/env python3
to the top of the file, make it executable, and put it in /usr/bin (or I believe /usr/local/bin on MacOS) and it can simply be ran from any terminal no matter the current working directory. Do this with the make file, so that the user (if on Linux or MacOS) can simply run
make install
and the program will be installed. No need for installing additional dependencies just for the installer. I also recommend compiling the code to a single binary so that all dependencies are bundled instead of needing to be installed.
You would need GNU Make for that, which is not necessarily easy to install compared to just running a Python script
MagicCrayon9342
Scratcher
1000+ posts

[Please help with Noml 0.3!] Noml -- The text editor --

ajskateboarder wrote:

MagicCrayon9342 wrote:

__Falcon-Games__ wrote:

MagicCrayon9342 wrote:

For Linux and MacOS, a Makefile would be more suitable.
It's written in Python. Also how in the world did you find this topic?
It has nothing to do with what the program is written in, a Makefile is for compilation, installation, and uninstallation of programs. You can add
#!/usr/bin/env python3
to the top of the file, make it executable, and put it in /usr/bin (or I believe /usr/local/bin on MacOS) and it can simply be ran from any terminal no matter the current working directory. Do this with the make file, so that the user (if on Linux or MacOS) can simply run
make install
and the program will be installed. No need for installing additional dependencies just for the installer. I also recommend compiling the code to a single binary so that all dependencies are bundled instead of needing to be installed.
You would need GNU Make for that, which is not necessarily easy to install compared to just running a Python script
Most distributions do one of two things:
1. Have it preinstalled
2. Have it in the repositories

If it's in the repos it takes one command and a few seconds to install it.
ajskateboarder
Scratcher
1000+ posts

[Please help with Noml 0.3!] Noml -- The text editor --

MagicCrayon9342 wrote:

ajskateboarder wrote:

MagicCrayon9342 wrote:

__Falcon-Games__ wrote:

MagicCrayon9342 wrote:

For Linux and MacOS, a Makefile would be more suitable.
It's written in Python. Also how in the world did you find this topic?
It has nothing to do with what the program is written in, a Makefile is for compilation, installation, and uninstallation of programs. You can add
#!/usr/bin/env python3
to the top of the file, make it executable, and put it in /usr/bin (or I believe /usr/local/bin on MacOS) and it can simply be ran from any terminal no matter the current working directory. Do this with the make file, so that the user (if on Linux or MacOS) can simply run
make install
and the program will be installed. No need for installing additional dependencies just for the installer. I also recommend compiling the code to a single binary so that all dependencies are bundled instead of needing to be installed.
You would need GNU Make for that, which is not necessarily easy to install compared to just running a Python script
Most distributions do one of two things:
1. Have it preinstalled
2. Have it in the repositories

If it's in the repos it takes one command and a few seconds to install it.
Windows?
davidtheplatform
Scratcher
500+ posts

[Please help with Noml 0.3!] Noml -- The text editor --

Why would you even need a makefile for a python script? if it just copies the file to /usr/bin or adds a shortcut to the start menu you could just make a normal shell/bash script. You also could bundle it with python using pyinstaller so it works exactly like a normal program and doesn't even need python
MagicCrayon9342
Scratcher
1000+ posts

[Please help with Noml 0.3!] Noml -- The text editor --

davidtheplatform wrote:

Why would you even need a makefile for a python script? if it just copies the file to /usr/bin or adds a shortcut to the start menu you could just make a normal shell/bash script. You also could bundle it with python using pyinstaller so it works exactly like a normal program and doesn't even need python
How is your installer superior to a makefile?
davidtheplatform
Scratcher
500+ posts

[Please help with Noml 0.3!] Noml -- The text editor --

MagicCrayon9342 wrote:

davidtheplatform wrote:

Why would you even need a makefile for a python script? if it just copies the file to /usr/bin or adds a shortcut to the start menu you could just make a normal shell/bash script. You also could bundle it with python using pyinstaller so it works exactly like a normal program and doesn't even need python
How is your installer superior to a makefile?
How is a makefile better than a shell script?
If you're on linux you probably have make installed, but you definitely have sh or bash or zsh or whatever installed.
If you're on windows, you probably don't have make installed and it's kind of a pain to do so. You can definitely run batch files.
Make is intended as a dependency management tool. Python has pip. You could have a makefile that installs the program, or you could have a batch/shell script that works on windows too.

Basically make is overkill and may not be installed on a users system, while there are alternatives that do the same thing and are installed

Also I have a github actions thing that packages noml into a single file but it isn't complete yet
gamer20132020
Scratcher
100+ posts

[Please help with Noml 0.3!] Noml -- The text editor --

Last login: Sun Oct 15 15:31:01 on console
zain@Kholoods-MacBook-Pro ~ % curl https://raw.githubusercontent.com/GenericProgrammer1234/Noml/main/install.sh -OL && bash install.sh && rm install.sh

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1438 100 1438 0 0 3218 0 –:–:– –:–:– –:–:– 3260
Welcome to the Noml installer!
Enter the installation directory for Noml: files
Cloning Noml from GitHub…
Noml installed successfully!
Adding Noml path to PYTHONPATH…
PYTHONPATH updated successfully!
Alias ‘noml’ to the Noml app.py file…
Alias ‘noml’ added successfully!
Installation has finished!
You can now run ‘noml’ to start the text editor.
zain@Kholoods-MacBook-Pro ~ % noml
/Library/Frameworks/Python.framework/Versions/3.11/Resources/Python.app/Contents/MacOS/Python: can't open file ‘/Users/zain/noml/Noml/app.py’: No such file or directory
zain@Kholoods-MacBook-Pro ~ % cd files
zain@Kholoods-MacBook-Pro files % noml
/Library/Frameworks/Python.framework/Versions/3.11/Resources/Python.app/Contents/MacOS/Python: can't open file ‘/Users/zain/Files/noml/Noml/app.py’: No such file or directory
zain@Kholoods-MacBook-Pro files %
__Falcon-Games__
Scratcher
1000+ posts

[Please help with Noml 0.3!] Noml -- The text editor --

gamer20132020 wrote:

Last login: Sun Oct 15 15:31:01 on console
zain@Kholoods-MacBook-Pro ~ % curl https://raw.githubusercontent.com/GenericProgrammer1234/Noml/main/install.sh -OL && bash install.sh && rm install.sh

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1438 100 1438 0 0 3218 0 –:–:– –:–:– –:–:– 3260
Welcome to the Noml installer!
Enter the installation directory for Noml: files
Cloning Noml from GitHub…
Noml installed successfully!
Adding Noml path to PYTHONPATH…
PYTHONPATH updated successfully!
Alias ‘noml’ to the Noml app.py file…
Alias ‘noml’ added successfully!
Installation has finished!
You can now run ‘noml’ to start the text editor.
zain@Kholoods-MacBook-Pro ~ % noml
/Library/Frameworks/Python.framework/Versions/3.11/Resources/Python.app/Contents/MacOS/Python: can't open file ‘/Users/zain/noml/Noml/app.py’: No such file or directory
zain@Kholoods-MacBook-Pro ~ % cd files
zain@Kholoods-MacBook-Pro files % noml
/Library/Frameworks/Python.framework/Versions/3.11/Resources/Python.app/Contents/MacOS/Python: can't open file ‘/Users/zain/Files/noml/Noml/app.py’: No such file or directory
zain@Kholoods-MacBook-Pro files %
Don't use the installer right now.
ajskateboarder
Scratcher
1000+ posts

[Please help with Noml 0.3!] Noml -- The text editor --

__Falcon-Games__ wrote:

curl https://raw.githubusercontent.com/GenericProgrammer1234/Noml/main/install.sh -OL && bash install.sh && rm install.sh
How come nobody here has heard of pipes?
curl https://raw.githubusercontent.com/GenericProgrammer1234/Noml/main/install.sh | bash
__Falcon-Games__
Scratcher
1000+ posts

[Please help with Noml 0.3!] Noml -- The text editor --

ajskateboarder wrote:

__Falcon-Games__ wrote:

curl https://raw.githubusercontent.com/GenericProgrammer1234/Noml/main/install.sh -OL && bash install.sh && rm install.sh
How come nobody here has heard of pipes?
curl https://raw.githubusercontent.com/GenericProgrammer1234/Noml/main/install.sh | bash
I have but my brain was too stupid at that moment to remember they existed.

Powered by DjangoBB