mirror of
https://github.com/R0m1k3/Loki.git
synced 2026-10-14 18:58:43 +02:00
Rebaptise AJEAN en Loki (fork, lignée conservée)
- module github.com/R0m1k3/Loki, cmd/loki, internal/loki (package loki) - LOKI_HOME, LOKI_MODEL_DIRS, LOKI_SERVICE, LOKI_DL_CONNS ; /etc/loki ; units loki-engine / loki-ui ; binaire et aide CLI - updateRepo pointe sur R0m1k3/Loki (l'auto-update ne tirera plus les binaires AJEAN amont) Conservé à l'identique : le domaine ajean.link (service de tunnel amont), les littéraux de migration 0.7.x (migrate_07.go), RELEASE_NOTES.md et LICENSE (historique et licence de l'amont). go build/vet/test : verts.
This commit is contained in:
157 files changed
+928
-928
No files matched your search
@@ -1,4 +1,4 @@
|
||||
# Build macOS à la demande, SANS rien publier : produit AJEAN.app en artifact
|
||||
# Build macOS à la demande, SANS rien publier : produit Loki.app en artifact
|
||||
# téléchargeable depuis l'onglet Actions (visible seulement par le dépôt).
|
||||
# Sert à tester le bundle avant de décider d'une vraie release (release.yml).
|
||||
name: mac-build
|
||||
@@ -13,40 +13,40 @@ jobs:
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- name: build + bundle AJEAN.app (arm64)
|
||||
- name: build + bundle Loki.app (arm64)
|
||||
run: |
|
||||
mkdir -p dist
|
||||
CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 \
|
||||
go build -trimpath -ldflags="-s -w" -o dist/ajean-macos-arm ./cmd/ajean
|
||||
mkdir -p /tmp/ajean.iconset
|
||||
sips -s format png 'cmd/ajean/icon.ico' --out /tmp/icon.png >/dev/null 2>&1 || true
|
||||
go build -trimpath -ldflags="-s -w" -o dist/loki-macos-arm ./cmd/loki
|
||||
mkdir -p /tmp/loki.iconset
|
||||
sips -s format png 'cmd/loki/icon.ico' --out /tmp/icon.png >/dev/null 2>&1 || true
|
||||
for s in 16 32 128 256 512; do
|
||||
sips -z $s $s /tmp/icon.png --out "/tmp/ajean.iconset/icon_${s}x${s}.png" >/dev/null 2>&1 || true
|
||||
sips -z $s $s /tmp/icon.png --out "/tmp/loki.iconset/icon_${s}x${s}.png" >/dev/null 2>&1 || true
|
||||
done
|
||||
iconutil -c icns /tmp/ajean.iconset -o /tmp/ajean.icns >/dev/null 2>&1 || true
|
||||
app="dist/AJEAN.app"
|
||||
iconutil -c icns /tmp/loki.iconset -o /tmp/loki.icns >/dev/null 2>&1 || true
|
||||
app="dist/Loki.app"
|
||||
mkdir -p "$app/Contents/MacOS" "$app/Contents/Resources"
|
||||
cp dist/ajean-macos-arm "$app/Contents/MacOS/ajean"
|
||||
chmod +x "$app/Contents/MacOS/ajean"
|
||||
cp /tmp/ajean.icns "$app/Contents/Resources/ajean.icns" 2>/dev/null || true
|
||||
cp dist/loki-macos-arm "$app/Contents/MacOS/loki"
|
||||
chmod +x "$app/Contents/MacOS/loki"
|
||||
cp /tmp/loki.icns "$app/Contents/Resources/loki.icns" 2>/dev/null || true
|
||||
printf '%s\n' \
|
||||
'<?xml version="1.0" encoding="UTF-8"?>' \
|
||||
'<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">' \
|
||||
'<plist version="1.0"><dict>' \
|
||||
'<key>CFBundleName</key><string>AJEAN</string>' \
|
||||
'<key>CFBundleDisplayName</key><string>AJEAN</string>' \
|
||||
'<key>CFBundleExecutable</key><string>ajean</string>' \
|
||||
'<key>CFBundleIdentifier</key><string>link.ajean.app</string>' \
|
||||
'<key>CFBundleIconFile</key><string>ajean</string>' \
|
||||
'<key>CFBundleName</key><string>Loki</string>' \
|
||||
'<key>CFBundleDisplayName</key><string>Loki</string>' \
|
||||
'<key>CFBundleExecutable</key><string>loki</string>' \
|
||||
'<key>CFBundleIdentifier</key><string>link.loki.app</string>' \
|
||||
'<key>CFBundleIconFile</key><string>loki</string>' \
|
||||
'<key>CFBundlePackageType</key><string>APPL</string>' \
|
||||
'<key>LSMinimumSystemVersion</key><string>11.0</string>' \
|
||||
'<key>LSUIElement</key><true/>' \
|
||||
'<key>NSHighResolutionCapable</key><true/>' \
|
||||
'</dict></plist>' > "$app/Contents/Info.plist"
|
||||
codesign --force --deep -s - "$app" || true
|
||||
(cd dist && zip -qry ajean-macos-arm.zip AJEAN.app && rm -rf AJEAN.app)
|
||||
(cd dist && zip -qry loki-macos-arm.zip Loki.app && rm -rf Loki.app)
|
||||
ls -l dist
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ajean-macos-arm
|
||||
path: dist/ajean-macos-arm.zip
|
||||
name: loki-macos-arm
|
||||
path: dist/loki-macos-arm.zip
|
||||
Reference in new issue
Block a user