Skip to content

Commit c3fd284

Browse files
committed
fix: update all repository references to ihsannyy/kilat and build release binaries
1 parent cfeff3e commit c3fd284

15 files changed

Lines changed: 54 additions & 23 deletions

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ Kilat memecahkan masalah ini dengan:
4646
Cara termudah dan tercepat untuk memasang Kilat. Skrip ini akan otomatis mendeteksi arsitektur perangkat Anda (ARM64, AMD64, atau ARMv7) dan memasang binary rilis yang sesuai:
4747

4848
```bash
49-
curl -fsSL https://raw.githubusercontent.com/cilldev/kilat/main/install.sh | bash
49+
curl -fsSL https://raw.githubusercontent.com/ihsannyy/kilat/main/install.sh | bash
5050
```
5151

5252
### 2. Build Mandiri dari Source
5353
Jika ingin mengompilasi sendiri, pastikan sudah memasang Go v1.21 ke atas:
5454

5555
```bash
5656
# Clone repositori
57-
git clone https://github.com/cilldev/kilat
57+
git clone https://github.com/ihsannyy/kilat
5858
cd kilat
5959

6060
# Kompilasi source code
@@ -228,7 +228,7 @@ Setiap kontribusi berupa perbaikan bug, penambahan modul bawaan baru, maupun sar
228228

229229
```bash
230230
# Langkah pengembangan lokal:
231-
git clone https://github.com/cilldev/kilat
231+
git clone https://github.com/ihsannyy/kilat
232232
cd kilat
233233
go mod tidy
234234
go build -o kilat ./cmd/kilat

build-releases.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
set -e
3+
4+
mkdir -p release-builds
5+
rm -f release-builds/*
6+
7+
echo "🚀 Building release binaries..."
8+
9+
targets=(
10+
"linux/amd64/kilat-linux-amd64"
11+
"linux/arm64/kilat-linux-arm64"
12+
"linux/arm/kilat-linux-armv7"
13+
"darwin/amd64/kilat-darwin-amd64"
14+
"darwin/arm64/kilat-darwin-arm64"
15+
"windows/amd64/kilat-windows-amd64.exe"
16+
"windows/arm64/kilat-windows-arm64.exe"
17+
)
18+
19+
for target in "${targets[@]}"; do
20+
IFS="/" read -r goos goarch name <<< "$target"
21+
echo "📦 Building $name ($goos/$goarch)..."
22+
if [ "$goarch" = "arm" ]; then
23+
CGO_ENABLED=0 GOOS="$goos" GOARCH="$goarch" GOARM=7 go build -trimpath -ldflags="-s -w" -o "release-builds/$name" ./cmd/kilat
24+
else
25+
CGO_ENABLED=0 GOOS="$goos" GOARCH="$goarch" go build -trimpath -ldflags="-s -w" -o "release-builds/$name" ./cmd/kilat
26+
fi
27+
echo " ✅ Done: release-builds/$name"
28+
done
29+
30+
echo "✨ All release binaries compiled successfully!"
31+
ls -lh release-builds/
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
<!-- Favicon -->
2626
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb100' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z'/%3E%3Cpath d='m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z'/%3E%3Cpath d='M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0'/%3E%3Cpath d='M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5'/%3E%3C/svg%3E" />
27-
<script type="module" crossorigin src="./assets/index-CvsUxb7s.js"></script>
27+
<script type="module" crossorigin src="./assets/index-BLtkO-_A.js"></script>
2828
<link rel="stylesheet" crossorigin href="./assets/index-xY078lMG.css">
2929
</head>
3030
<body>

install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Kilat Installer for Windows PowerShell
22
$ErrorActionPreference = "Stop"
33

4-
$Repo = "cilldev/kilat"
4+
$Repo = "ihsannyy/kilat"
55
$Version = "v3.1.0"
66
$BinaryName = "kilat.exe"
77

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Kilat Installer - Fast JS Runtime for Termux, Linux, macOS, and Windows
33
set -e
44

5-
REPO="cilldev/kilat"
5+
REPO="ihsannyy/kilat"
66
BINARY="kilat"
77
VERSION="v3.1.0"
88

internal/utils/update.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func CheckUpdate() {
4242
current := Version
4343
if cache.LatestVersion != "" && isNewerVersion(current, cache.LatestVersion) {
4444
color.Yellow("\n✨ Versi baru Kilat tersedia: %s (Versi saat ini: %s)", "v"+cache.LatestVersion, "v"+current)
45-
color.Cyan("👉 Perbarui dengan: curl -fsSL https://raw.githubusercontent.com/cilldev/kilat/main/install.sh | bash\n")
45+
color.Cyan("👉 Perbarui dengan: curl -fsSL https://raw.githubusercontent.com/ihsannyy/kilat/main/install.sh | bash\n")
4646
}
4747

4848
if time.Since(cache.LastChecked) > 24*time.Hour {
@@ -52,7 +52,7 @@ func CheckUpdate() {
5252

5353
func fetchLatestVersion(cacheFile string, cache UpdateCache) {
5454
client := NewHTTPClient(5 * time.Second)
55-
req, err := http.NewRequest("GET", "https://api.github.com/repos/cilldev/kilat/releases/latest", nil)
55+
req, err := http.NewRequest("GET", "https://api.github.com/repos/ihsannyy/kilat/releases/latest", nil)
5656
if err != nil {
5757
return
5858
}
@@ -107,7 +107,7 @@ func SelfUpdate() {
107107
color.Cyan("🔄 Memulai pencarian rilis terbaru di GitHub...")
108108

109109
client := NewHTTPClient(15 * time.Second)
110-
req, err := http.NewRequest("GET", "https://api.github.com/repos/cilldev/kilat/releases/latest", nil)
110+
req, err := http.NewRequest("GET", "https://api.github.com/repos/ihsannyy/kilat/releases/latest", nil)
111111
if err != nil {
112112
color.Red("❌ Gagal membuat request: %v", err)
113113
return
@@ -153,7 +153,7 @@ func SelfUpdate() {
153153
if osName == "windows" {
154154
assetName += ".exe"
155155
}
156-
downloadURL := fmt.Sprintf("https://github.com/cilldev/kilat/releases/download/%s/%s", result.TagName, assetName)
156+
downloadURL := fmt.Sprintf("https://github.com/ihsannyy/kilat/releases/download/%s/%s", result.TagName, assetName)
157157

158158
color.Cyan("📡 Mengunduh biner: %s", downloadURL)
159159

release-builds/kilat-darwin-amd64

18.8 MB
Binary file not shown.

release-builds/kilat-darwin-arm64

17.5 MB
Binary file not shown.

release-builds/kilat-linux-amd64

18.5 MB
Binary file not shown.

0 commit comments

Comments
 (0)