Skip to content

Commit a3af50b

Browse files
author
CircuitRCAY
committed
3 hours of work finally done
1 parent f8e3861 commit a3af50b

File tree

5 files changed

+27
-11
lines changed

5 files changed

+27
-11
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,5 @@ venv.bak/
6464
.vs/
6565
old/
6666
\.gitlab-ci\.yml
67+
68+
#

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ print(out) :: Prints 1337 to the console
2020
## Prerequisites
2121

2222
* Python 3.6+
23-
* pyinstaller (`pip install pyinstaller`)
23+
* cx_Freeze (Will be installed through `build-executable.bat`)
2424

2525
## Getting Started
2626

2727
To build an executable in the current directory, run `build-executable.bat` if you're on Windows. Linux support hasn't been added yet. MacOS may work, but hasn't been tested.
2828

2929
```cmd
30-
cd build/jink
30+
cd build/exe.win32-3.6
3131
jink.exe main.jk
3232
```
3333

build-executable.bat

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
@echo off
2-
3-
echo Building an executable....
4-
5-
set /p specpath=Enter path of JINK directory:
6-
7-
pyinstaller --specpath=%specpath% jink.py
8-
9-
echo Executable built at %specpath%\build\jink
1+
pip install cx_Freeze
2+
python setup.py build_exe
3+
@echo Look in build/ for the exe file.

jink.ico

101 KB
Binary file not shown.

setup.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import sys
2+
from cx_Freeze import setup, Executable
3+
import os
4+
5+
build_exe_options={"include_msvcr": True}
6+
7+
cwd = os.getcwd()
8+
9+
base=None
10+
if sys.platform == "win32":
11+
base = "Console"
12+
13+
14+
setup(
15+
name="jink",
16+
version="0.0.1",
17+
description="A strongly typed, JavaScript-like programming language.",
18+
options={"build_exe": build_exe_options},
19+
executables=[Executable("jink.py", base=base, icon=f"{cwd}\\jink.ico")]
20+
)

0 commit comments

Comments
 (0)