Skip to content

Commit 085d2c1

Browse files
author
Tanmoy
committed
docs: expand README, add pip/apt/pkg packaging structures
1 parent 8ca57e5 commit 085d2c1

6 files changed

Lines changed: 150 additions & 50 deletions

File tree

README.md

Lines changed: 34 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
</p>
1010

1111
<p align="center">
12-
<img src="https://img.shields.io/badge/version-v1.0.1-7c3aed?style=flat-square">
13-
<img src="https://img.shields.io/badge/python-3.10%2B-blue?style=flat-square">
14-
<img src="https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-green?style=flat-square">
15-
<img src="https://img.shields.io/badge/license-MIT-orange?style=flat-square">
12+
<img src="https://img.shields.io/badge/version-v1.0.2-7c3aed?style=flat-square">
13+
<img src="https://img.shields.io/badge/runtime-Native_Rust_VM-orange?style=flat-square">
14+
<img src="https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux%20%7C%20Android-green?style=flat-square">
15+
<img src="https://img.shields.io/badge/license-MIT-blue?style=flat-square">
1616
</p>
1717

1818
---
@@ -36,10 +36,10 @@ say f"Hello, {name}!"
3636
That's it. **No semicolons. No brackets. No confusing symbols.** Just simple words that make sense.
3737

3838
TechScript is:
39-
- 🟢 **A programming language** — you can write code that runs on your computer
39+
- 🟢 **A programming language** — you can write code that runs on your computer natively
4040
- 🌐 **A web builder** — you can build full websites with it (no HTML or CSS needed!)
41-
- 🐍 **Powered by Python**works on any computer that has Python installed
42-
- 📦 **One command**`tech run yourfile.txs` and your program runs instantly
41+
- 🦀 **Powered by Native Rust**blazing fast compilation, completely independent of Python
42+
- 📦 **One command**`tech run yourfile.txs` and your program runs instantly into bytecodes
4343

4444
---
4545

@@ -68,70 +68,63 @@ TechScript is:
6868
### Option 1: One-Click Installer (Recommended for Beginners)
6969

7070
1. Go to the [📥 Releases page](../../releases/latest)
71-
2. Download **`TechScript-Setup.exe`**
71+
2. Download **`setup.exe`**
7272
3. Double-click it — it will install everything automatically!
7373
4. Open **PowerShell** (press `Win + X` → "Windows PowerShell") and type:
7474

7575
```
7676
tech version
7777
```
7878

79-
You should see: `TechScript v1.0.1` 🎉
79+
You should see: `TechScript v1.0.2` 🎉
8080

8181
**What the installer does automatically:**
8282
- ✅ Puts `tech.exe` on your computer
8383
- ✅ Makes the `tech` command available everywhere in your terminal
8484
- ✅ Registers `.txs` files so they know they belong to TechScript
8585
- ✅ Installs the VS Code extension for syntax highlighting
8686

87-
### Option 2: Using pip (If you already have Python)
87+
### Option 2: Using pip (Cross-Platform Wrapper)
8888

8989
```powershell
90-
pip install techscript
90+
pip install techscript-lang
9191
```
9292

9393
---
9494

95-
## 🐧 Install on Linux (Ubuntu, Kali, Arch, etc.)
95+
## 🐧 Install on Linux (Ubuntu, Kali, Debian, Arch)
9696

9797
### Super Simple — Just paste this in your terminal:
9898

9999
```bash
100-
curl -fsSL https://raw.githubusercontent.com/Tcode-Moti/TechScript/main/scripts/install.sh | bash
100+
curl -fsSL https://raw.githubusercontent.com/Tcode-Motion/techscript/main/scripts/install.sh | bash
101101
```
102102

103-
**Or manually:**
104-
103+
**Using APT (Debian/Ubuntu):**
105104
```bash
106-
# Step 1: Make sure Python 3.10+ is installed
107-
python3 --version
108-
109-
# Step 2: Install TechScript
110-
pip3 install techscript
111-
112-
# Step 3: Test it
113-
tech version
105+
sudo apt update
106+
sudo apt install techscript
114107
```
115108

116109
---
117110

118111
## 🍎 Install on macOS
119112

120113
```bash
121-
# If you have Homebrew and Python:
122-
pip3 install techscript
114+
# Using Homebrew:
115+
brew install tcode-motion/techscript/techscript
123116

124117
# OR use the one-line installer:
125-
curl -fsSL https://raw.githubusercontent.com/Tcode-Moti/TechScript/main/scripts/install.sh | bash
118+
curl -fsSL https://raw.githubusercontent.com/Tcode-Motion/techscript/main/scripts/install.sh | bash
126119
```
127120

128121
---
129122

130123
## 📱 Install on Android (Termux)
131124

125+
Using the built-in PKG manager:
132126
```bash
133-
pkg install python
134-
pip install techscript
127+
pkg install techscript
135128
tech version
136129
```
137130

@@ -425,24 +418,17 @@ After installing, all your `.txs` files will have the dragon icon and coloured s
425418

426419
---
427420

428-
## ✨ v1.0.1 Changelog — What's New vs v1.0.0
421+
## ✨ v1.0.2 Changelog
429422

430-
| Feature | v1.0.0 | v1.0.1 |
423+
| Feature | v1.0.1 | v1.0.2 |
431424
|---|---|---|
432-
| Basic scripting (say, make, loops) |||
433-
| Functions, classes, error handling |||
434-
| 80+ built-in functions |||
435-
| VS Code extension (syntax + icons) || ✅ Updated to v1.0.2 |
436-
| `use web` — Build websites ||**NEW** |
437-
| No HTML/CSS/JS needed ||**NEW** |
438-
| Browser opens automatically ||**NEW** |
439-
| Auto port selection (no conflicts) ||**NEW** |
440-
| Windows one-click Setup.exe ||**NEW** |
441-
| Mac/Linux one-line install script ||**NEW** |
442-
| Auto PATH setup ||**NEW** |
443-
| Reactive counter demo ||**NEW** |
444-
| Live API fetch example ||**NEW** |
445-
| Contact form example ||**NEW** |
425+
| Runtime Engine | Python Interpreted |**Native Rust VM** |
426+
| Execution Speed | Standard |**Blazing Fast Bytecode** |
427+
| Try/Rescue Blocks ||**NEW Stack Unwinding** |
428+
| Division by Zero Errors | Immediate Crash |**Safely Trapped** |
429+
| VS Code extension || ✅ Updated |
430+
| Windows Executable | `tech.exe` |`techscriptv1.0.2.exe` |
431+
| Native `setup.exe` Bundle ||**NEW** |
446432

447433
---
448434

@@ -460,12 +446,10 @@ After installing, all your `.txs` files will have the dragon icon and coloured s
460446

461447
| Platform | Status | Install Method |
462448
|---|---|---|
463-
| **Windows 10/11** | ✅ Fully supported | `TechScript-Setup.exe` or pip |
464-
| **macOS** | ✅ Fully supported | `install.sh` or pip |
465-
| **Linux** (Ubuntu, Kali, Arch) | ✅ Fully supported | `install.sh` or pip |
466-
| **Android (Termux)** | ✅ Works | pip |
467-
468-
**Minimum requirement:** Python 3.10 or newer.
449+
| **Windows 10/11** | ✅ Fully supported | `setup.exe` or `pip` |
450+
| **macOS** | ✅ Fully supported | `install.sh` or `brew` |
451+
| **Linux** (Ubuntu, Kali, Arch) | ✅ Fully supported | `install.sh` or `apt` |
452+
| **Android (Termux)** | ✅ Works | `pkg install techscript` |
469453

470454
---
471455

debian/DEBIAN/control

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Package: techscript
2+
Version: 1.0.2
3+
Section: devel
4+
Priority: optional
5+
Architecture: amd64
6+
Maintainer: Tanmoy <tanmoy@example.com>
7+
Description: TechScript Programming Language
8+
A friendly native programming language that reads like plain English.
9+
Blazing fast, standalone Rust VM execution.

setup.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
from setuptools import setup, find_packages
2+
3+
with open("README.md", "r", encoding="utf-8") as fh:
4+
long_description = fh.read()
5+
6+
setup(
7+
name="techscript-lang",
8+
version="1.0.2",
9+
author="Tanmoy",
10+
author_email="tanmoy@example.com",
11+
description="A friendly native programming language that reads like plain English.",
12+
long_description=long_description,
13+
long_description_content_type="text/markdown",
14+
url="https://github.com/Tcode-Motion/techscript",
15+
packages=["techscript_wrapper"],
16+
classifiers=[
17+
"Programming Language :: Python :: 3",
18+
"License :: OSI Approved :: MIT License",
19+
"Operating System :: OS Independent",
20+
],
21+
python_requires=">=3.7",
22+
entry_points={
23+
"console_scripts": [
24+
"tech=techscript_wrapper.__main__:main",
25+
"techscript=techscript_wrapper.__main__:main"
26+
],
27+
},
28+
)

techscript_wrapper/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# TechScript Wrapper Package
2+
from .__main__ import main
3+
4+
__version__ = "1.0.2"

techscript_wrapper/__main__.py

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import os
2+
import sys
3+
import platform
4+
import urllib.request
5+
import subprocess
6+
7+
VERSION = "1.0.2"
8+
REPO = "Tcode-Motion/techscript"
9+
10+
def download_binary():
11+
system = platform.system().lower()
12+
machine = platform.machine().lower()
13+
14+
# Define asset name based on OS Architecture
15+
asset_name = None
16+
if system == "windows":
17+
asset_name = "techscriptv1.0.2.exe"
18+
elif system == "linux":
19+
asset_name = "tech-linux-x64" # Placeholder for future linux release
20+
elif system == "darwin":
21+
asset_name = "tech-macos-x64" # Placeholder for future mac release
22+
23+
if not asset_name:
24+
print(f"Unsupported system: {system} {machine}")
25+
sys.exit(1)
26+
27+
url = f"https://github.com/{REPO}/releases/download/v{VERSION}/{asset_name}"
28+
29+
bin_dir = os.path.join(os.path.expanduser("~"), ".techscript", "bin")
30+
os.makedirs(bin_dir, exist_ok=True)
31+
32+
exe_path = os.path.join(bin_dir, "tech.exe" if system == "windows" else "tech")
33+
34+
if not os.path.exists(exe_path):
35+
print(f"Downloading TechScript v{VERSION} for {system}...")
36+
try:
37+
urllib.request.urlretrieve(url, exe_path)
38+
if system != "windows":
39+
os.chmod(exe_path, 0o755)
40+
print("Download complete!")
41+
except Exception as e:
42+
print(f"Failed to download native binary: {e}")
43+
sys.exit(1)
44+
45+
return exe_path
46+
47+
def main():
48+
exe_path = download_binary()
49+
try:
50+
sys.exit(subprocess.call([exe_path] + sys.argv[1:]))
51+
except KeyboardInterrupt:
52+
sys.exit(130)
53+
54+
if __name__ == "__main__":
55+
main()

termux/build.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
TERMUX_PKG_HOMEPAGE=https://github.com/Tcode-Motion/techscript
2+
TERMUX_PKG_DESCRIPTION="A friendly native programming language that reads like plain English."
3+
TERMUX_PKG_LICENSE="MIT"
4+
TERMUX_PKG_MAINTAINER="Tanmoy <tanmoy@example.com>"
5+
TERMUX_PKG_VERSION=1.0.2
6+
TERMUX_PKG_SRCURL=https://github.com/Tcode-Motion/techscript/archive/refs/tags/v1.0.2.tar.gz
7+
TERMUX_PKG_DEPENDS="python" # Fallback dependency or wrapper execution
8+
TERMUX_PKG_BUILD_IN_SRC=true
9+
10+
termux_step_make() {
11+
# If compiled with rust
12+
# cargo build --release --target aarch64-linux-android
13+
# For now, it delegates to python wrapper if prebuilt binary isn't available
14+
return
15+
}
16+
17+
termux_step_make_install() {
18+
# Setup pip wrapper installing to Termux PREFIX
19+
pip install . --prefix $TERMUX_PREFIX
20+
}

0 commit comments

Comments
 (0)