chore: migrate all URLs to git.jskdjs.cn, drop GitHub-specific distribution

This commit is contained in:
2026-11-09 10:31:11 +08:00
parent dd793f24fd
commit b4de699a32
26 changed files with 93 additions and 214 deletions
-1
View File
@@ -1 +0,0 @@
github: [mateussiqueira]
-43
View File
@@ -1,43 +0,0 @@
name: Update Homebrew Formula
on:
release:
types: [published]
jobs:
update-homebrew:
name: Update homebrew-runaway formula
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
repository: mateussiqueira/homebrew-runaway
token: ${{ secrets.GH_PAT || github.token }}
- name: Download release artifact and compute SHA
id: sha
run: |
TAG="${{ github.event.release.tag_name }}"
curl -sL "https://github.com/mateussiqueira/runaway/releases/download/${TAG}/runaway-standalone.sh" -o /tmp/runaway-standalone.sh
SHA=$(shasum -a 256 /tmp/runaway-standalone.sh | cut -d' ' -f1)
echo "sha=${SHA}" >> $GITHUB_OUTPUT
echo "tag=${TAG}" >> $GITHUB_OUTPUT
- name: Update formula URL and SHA
run: |
VERSION="${{ github.event.release.tag_name }}"
VERSION="${VERSION#v}"
SHA="${{ steps.sha.outputs.sha }}"
TAG="${{ steps.sha.outputs.tag }}"
sed -i "s|url \".*\"|url \"https://raw.githubusercontent.com/mateussiqueira/runaway/${TAG}/runaway-standalone.sh\"|" Formula/runaway.rb
sed -i "s|version \".*\"|version \"${VERSION}\"|" Formula/runaway.rb
sed -i "s|sha256 \".*\"|sha256 \"${SHA}\"|" Formula/runaway.rb
- name: Commit and push
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add Formula/runaway.rb
git diff --cached --quiet || git commit -m "chore: update formula to ${{ github.event.release.tag_name }}"
git push
+1 -1
View File
@@ -35,7 +35,7 @@ No internet needed. No SIP to disable. No typing long URLs.
If you do have internet in Recovery:
```bash
curl -L https://raw.githubusercontent.com/mateussiqueira/runaway/main/runaway-standalone.sh -o /tmp/runaway
curl -L https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/runaway-standalone.sh -o /tmp/runaway
chmod +x /tmp/runaway && /tmp/runaway bypass
```
+1 -4
View File
@@ -7,11 +7,8 @@ Ferramenta única para bypass/supressão de MDM no macOS. Funciona do Modo de Re
## Instalação rápida
```bash
# Homebrew (mais fácil)
brew install mateussiqueira/runaway/runaway
# Download direto
curl -L https://raw.githubusercontent.com/mateussiqueira/runaway/main/runaway-standalone.sh -o runaway
curl -L https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/runaway-standalone.sh -o runaway
chmod +x runaway && sudo ./runaway
```
+1 -1
View File
@@ -31,7 +31,7 @@ chmod +x "/Volumes/YourSSD/runaway/runaway"
如果恢复模式下有网络,也可以:
```bash
curl -L https://raw.githubusercontent.com/mateussiqueira/runaway/main/runaway-standalone.sh -o /tmp/runaway
curl -L https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/runaway-standalone.sh -o /tmp/runaway
chmod +x /tmp/runaway && /tmp/runaway bypass
```
+1 -3
View File
@@ -3,9 +3,7 @@
## Q3 2026 (Jul–Sep) — Foundation
### July — v1.7.0 "Solidify"
- [ ] **Resolve GitHub Actions billing** — re-enable CI/CD
- [ ] **Fix CI pipeline** — all checks passing on every PR
- [ ] **Homebrew audit** — `brew audit --strict` passes on `mateussiqueira/runaway/runaway`
- [ ] **Improve bats test coverage** — mock-based tests for firewall, monitor, vpn modules
- [ ] **Add `--help` flag** per command (currently only global `-h`)
@@ -59,4 +57,4 @@
## How to contribute
Pick any unchecked item, open an issue or discussion, and submit a PR. See [CONTRIBUTING.md](https://github.com/mateussiqueira/runaway/blob/main/CONTRIBUTING.md) for guidelines.
Pick any unchecked item, open an issue or discussion, and submit a PR. See [CONTRIBUTING.md](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/CONTRIBUTING.md) for guidelines.
+1 -2
View File
@@ -13,8 +13,7 @@ This tool modifies system configuration to suppress MDM enrollment. While design
To report a vulnerability:
1. **Do NOT** open a public issue
2. Open a [security advisory](https://github.com/mateussiqueira/runaway/security/advisories) privately
3. Or email the maintainer directly
2. Email the maintainer directly: **bunnyruihan@gmail.com**
## Safety Guarantees
+2 -2
View File
@@ -16,9 +16,9 @@ pkgs.stdenv.mkDerivation rec {
meta = with pkgs.lib; {
description = "Single-script MDM bypass for macOS";
homepage = "https://github.com/mateussiqueira/runaway";
homepage = "https://git.jskdjs.cn/ruihan/runaway";
license = licenses.mit;
platforms = platforms.darwin;
maintainers = [ maintainers.mateussiqueira ];
maintainers = [ ];
};
}
+3 -3
View File
@@ -41,8 +41,8 @@
<a href="/security" data-pt="/pt/security">Security</a>
<h3>External</h3>
<a href="https://github.com/mateussiqueira/runaway" target="_blank">GitHub</a>
<a href="https://github.com/mateussiqueira/runaway/blob/main/CHANGELOG.md" target="_blank">Changelog</a>
<a href="https://git.jskdjs.cn/ruihan/runaway" target="_blank">GitHub</a>
<a href="https://git.jskdjs.cn/ruihan/runaway/src/branch/main/CHANGELOG.md" target="_blank">Changelog</a>
</nav>
<header class="page-header" role="banner">
@@ -64,7 +64,7 @@
{% if site.github.is_project_page %}
<span class="site-footer-owner"><a href="{{ site.github.repository_url }}">{{ site.github.repository_name }}</a> is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a>.</span>
{% endif %}
<span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a>.</span>
<span class="site-footer-credits">runaway documentation</span>
</footer>
</main>
+2 -2
View File
@@ -22,7 +22,7 @@ No. The original bypass-mdm scripts (v2, v3, express) only handle DEP markers an
- **Kernel-level pf firewall** (original does not do this)
- **Auto-heal daemon**, **background monitor**, **audit**, **predict**, **remediate**, and 30+ more commands
Plus a single-file distribution, Homebrew tap, DONT.md discussions, and GPG-signed releases.
Plus a single-file distribution, community discussions, and GPG-signed releases.
### Do I need to disable SIP?
@@ -54,7 +54,7 @@ Migration Assistant copies user-level caches, preferences, and launch agents fro
### Is there a GUI?
Not yet. The CLI is the primary interface. A SwiftUI wrapper is on the [roadmap](https://github.com/mateussiqueira/runaway/blob/main/ROADMAP.md).
Not yet. The CLI is the primary interface. A SwiftUI wrapper is on the [roadmap](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/ROADMAP.md).
### How is runaway licensed?
+10 -15
View File
@@ -38,14 +38,9 @@ runaway replaces the original five bypass-mdm scripts with a single file that ha
## Install
**Homebrew (easiest)**
```bash
brew install mateussiqueira/runaway/runaway
```
**Direct download**
```bash
curl -L https://raw.githubusercontent.com/mateussiqueira/runaway/main/runaway-standalone.sh -o runaway
curl -L https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/runaway-standalone.sh -o runaway
chmod +x runaway
```
@@ -451,14 +446,14 @@ Use `--verbose` for debug messages and `--log-file <path>` to write everything t
## Links
- [GitHub Repository](https://github.com/mateussiqueira/runaway)
- [Full README](https://github.com/mateussiqueira/runaway/blob/main/README.md)
- [GitHub Repository](https://git.jskdjs.cn/ruihan/runaway)
- [Full README](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/README.md)
- [Architecture Guide](guide)
- [FAQ](faq)
- [Quick Reference (QUICKSTART.md)](https://github.com/mateussiqueira/runaway/blob/main/QUICKSTART.md)
- [Changelog](https://github.com/mateussiqueira/runaway/blob/main/CHANGELOG.md)
- [Contributing](https://github.com/mateussiqueira/runaway/blob/main/CONTRIBUTING.md)
- [Code of Conduct](https://github.com/mateussiqueira/runaway/blob/main/CODE_OF_CONDUCT.md)
- [Security Policy](https://github.com/mateussiqueira/runaway/blob/main/SECURITY.md)
- [Discussions](https://github.com/mateussiqueira/runaway/discussions)
- [Report a Bug](https://github.com/mateussiqueira/runaway/issues/new?template=bug_report.md)
- [Quick Reference (QUICKSTART.md)](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/QUICKSTART.md)
- [Changelog](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/CHANGELOG.md)
- [Contributing](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/CONTRIBUTING.md)
- [Code of Conduct](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/CODE_OF_CONDUCT.md)
- [Security Policy](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/SECURITY.md)
- [Discussions](https://git.jskdjs.cn/ruihan/runaway/discussions)
- [Report a Bug](https://git.jskdjs.cn/ruihan/runaway/issues/new?template=bug_report.md)
+3 -15
View File
@@ -5,22 +5,10 @@ title: Installation — runaway
# Installation
## Homebrew (easiest)
```bash
brew tap mateussiqueira/runaway
brew install runaway
```
Or in one step:
```bash
brew install mateussiqueira/runaway/runaway
```
## Direct download
```bash
curl -L https://raw.githubusercontent.com/mateussiqueira/runaway/main/runaway-standalone.sh -o runaway
curl -L https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/runaway-standalone.sh -o runaway
chmod +x runaway
sudo ./runaway init
```
@@ -34,14 +22,14 @@ sudo ./runaway init
## Via curl in Recovery (needs internet)
```bash
curl -L https://raw.githubusercontent.com/mateussiqueira/runaway/main/runaway -o /tmp/runaway
curl -L https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/runaway -o /tmp/runaway
chmod +x /tmp/runaway && /tmp/runaway bypass
```
## Building from source
```bash
git clone https://github.com/mateussiqueira/runaway.git
git clone https://git.jskdjs.cn/ruihan/runaway.git
cd runaway
bash examples/build-standalone.sh
# Output: runaway-standalone.sh (~3200 lines)
+1 -1
View File
@@ -54,7 +54,7 @@ O Migration Assistant copia caches, preferências e launch agents do Mac antigo.
### Tem interface gráfica?
Ainda não. A CLI é a interface principal. Um wrapper SwiftUI está no [roadmap](https://github.com/mateussiqueira/runaway/blob/main/ROADMAP.md).
Ainda não. A CLI é a interface principal. Um wrapper SwiftUI está no [roadmap](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/ROADMAP.md).
### Qual é a licença?
+9 -14
View File
@@ -38,14 +38,9 @@ runaway substitui os cinco scripts originais do bypass-mdm em um único arquivo
## Instalar
**Homebrew (mais fácil)**
```bash
brew install mateussiqueira/runaway/runaway
```
**Download direto**
```bash
curl -L https://raw.githubusercontent.com/mateussiqueira/runaway/main/runaway-standalone.sh -o runaway
curl -L https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/runaway-standalone.sh -o runaway
chmod +x runaway
```
@@ -431,13 +426,13 @@ Use `--verbose` para mensagens de debug e `--log-file <caminho>` para escrever t
## Links
- [Repositório GitHub](https://github.com/mateussiqueira/runaway)
- [README completo](https://github.com/mateussiqueira/runaway/blob/main/README.md)
- [Repositório GitHub](https://git.jskdjs.cn/ruihan/runaway)
- [README completo](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/README.md)
- [Guia de Arquitetura](guide)
- [FAQ](faq)
- [Changelog](https://github.com/mateussiqueira/runaway/blob/main/CHANGELOG.md)
- [Contribuindo](https://github.com/mateussiqueira/runaway/blob/main/CONTRIBUTING.md)
- [Código de Conduta](https://github.com/mateussiqueira/runaway/blob/main/CODE_OF_CONDUCT.md)
- [Política de Segurança](https://github.com/mateussiqueira/runaway/blob/main/SECURITY.md)
- [Discussões](https://github.com/mateussiqueira/runaway/discussions)
- [Reportar Bug](https://github.com/mateussiqueira/runaway/issues/new?template=bug_report.md)
- [Changelog](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/CHANGELOG.md)
- [Contribuindo](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/CONTRIBUTING.md)
- [Código de Conduta](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/CODE_OF_CONDUCT.md)
- [Política de Segurança](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/SECURITY.md)
- [Discussões](https://git.jskdjs.cn/ruihan/runaway/discussions)
- [Reportar Bug](https://git.jskdjs.cn/ruihan/runaway/issues/new?template=bug_report.md)
+3 -15
View File
@@ -5,22 +5,10 @@ title: Instalação — runaway
# Instalação
## Homebrew (mais fácil)
```bash
brew tap mateussiqueira/runaway
brew install runaway
```
Ou em um passo:
```bash
brew install mateussiqueira/runaway/runaway
```
## Download direto
```bash
curl -L https://raw.githubusercontent.com/mateussiqueira/runaway/main/runaway-standalone.sh -o runaway
curl -L https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/runaway-standalone.sh -o runaway
chmod +x runaway
sudo ./runaway init
```
@@ -34,14 +22,14 @@ sudo ./runaway init
## Via curl no Recovery (precisa de internet)
```bash
curl -L https://raw.githubusercontent.com/mateussiqueira/runaway/main/runaway -o /tmp/runaway
curl -L https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/runaway -o /tmp/runaway
chmod +x /tmp/runaway && /tmp/runaway bypass
```
## Compilando a partir do código-fonte
```bash
git clone https://github.com/mateussiqueira/runaway.git
git clone https://git.jskdjs.cn/ruihan/runaway.git
cd runaway
bash examples/build-standalone.sh
# Saída: runaway-standalone.sh (~3200 linhas)
+1 -1
View File
@@ -58,4 +58,4 @@ precisam de acesso à rede.
## Divulgação Responsável
Encontrou um problema de segurança?
Veja a [Política de Segurança](https://github.com/mateussiqueira/runaway/blob/main/SECURITY.md).
Veja a [Política de Segurança](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/SECURITY.md).
+4 -20
View File
@@ -166,7 +166,6 @@ ERROR: Library not found: /path/to/lib/colors.sh
**Solução:**
- Use a versão standalone (`runaway-standalone.sh`)
- Ou execute da raiz do repositório onde o diretório `lib/` existe
- Ou instale via Homebrew
---
@@ -207,22 +206,7 @@ O serial fica no ABM para sempre — mas se o dispositivo nunca conectar sem pro
1. Certifique-se de ter `gpg` instalado
2. Importe a chave de assinatura: `gpg --keyserver keys.openpgp.org --recv-key <KEY_ID>`
3. Tente `sudo ./runaway update` novamente
4. Ou baixe manualmente de [GitHub Releases](https://github.com/mateussiqueira/runaway/releases)
---
### Instalação via Homebrew falha
```
Error: ... homebrew-core ...
```
**Solução:** Certifique-se de que o tap está atualizado:
```bash
brew untap mateussiqueira/runaway
brew tap mateussiqueira/runaway
brew install runaway
```
4. Ou baixe manualmente de [GitHub Releases](https://git.jskdjs.cn/ruihan/runaway/releases)
---
@@ -279,6 +263,6 @@ sudo ./runaway demo
## Obtendo Ajuda
- [GitHub Issues](https://github.com/mateussiqueira/runaway/issues)
- [Discussões](https://github.com/mateussiqueira/runaway/discussions)
- [Política de Segurança](https://github.com/mateussiqueira/runaway/blob/main/SECURITY.md)
- [Issues](https://git.jskdjs.cn/ruihan/runaway/issues)
- [Discussões](https://git.jskdjs.cn/ruihan/runaway/discussions)
- [Política de Segurança](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/SECURITY.md)
+1 -1
View File
@@ -58,4 +58,4 @@ network access.
## Responsible Disclosure
Found a security issue?
See the [Security Policy](https://github.com/mateussiqueira/runaway/blob/main/SECURITY.md).
See the [Security Policy](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/SECURITY.md).
+1 -1
View File
@@ -34,7 +34,7 @@
<text x="600" y="470" fill="#a6e3a1" text-anchor="middle" font-family="SFMono-Regular,Consolas,monospace" font-size="24" font-weight="bold">MDM BYPASSED — reboot and enjoy</text>
<!-- Footer -->
<text x="600" y="560" fill="#6c7086" text-anchor="middle" font-family="SFMono-Regular,Consolas,monospace" font-size="18">github.com/mateussiqueira/runaway</text>
<text x="600" y="560" fill="#6c7086" text-anchor="middle" font-family="SFMono-Regular,Consolas,monospace" font-size="18">git.jskdjs.cn/ruihan/runaway</text>
<!-- Cursor blink -->
<rect x="380" y="226" width="14" height="26" fill="#cdd6f4" rx="3">

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

+4 -20
View File
@@ -166,7 +166,6 @@ ERROR: Library not found: /path/to/lib/colors.sh
**Fix:**
- Use the standalone version (`runaway-standalone.sh`) instead
- Or run from the repo root where the `lib/` directory exists
- Or install via Homebrew
---
@@ -207,22 +206,7 @@ The serial stays in ABM forever — but if the device never connects without pro
1. Make sure you have `gpg` installed
2. Import the signing key: `gpg --keyserver keys.openpgp.org --recv-key <KEY_ID>`
3. Try `sudo ./runaway update` again
4. Or download manually from [GitHub Releases](https://github.com/mateussiqueira/runaway/releases)
---
### Homebrew installation fails
```
Error: ... homebrew-core ...
```
**Fix:** Make sure the tap is up to date:
```bash
brew untap mateussiqueira/runaway
brew tap mateussiqueira/runaway
brew install runaway
```
4. Or download manually from [GitHub Releases](https://git.jskdjs.cn/ruihan/runaway/releases)
---
@@ -279,6 +263,6 @@ sudo ./runaway demo
## Getting Help
- [GitHub Issues](https://github.com/mateussiqueira/runaway/issues)
- [Discussions](https://github.com/mateussiqueira/runaway/discussions)
- [Security Policy](https://github.com/mateussiqueira/runaway/blob/main/SECURITY.md)
- [Issues](https://git.jskdjs.cn/ruihan/runaway/issues)
- [Discussions](https://git.jskdjs.cn/ruihan/runaway/discussions)
- [Security Policy](https://git.jskdjs.cn/ruihan/runaway/src/branch/main/SECURITY.md)
+1 -1
View File
@@ -7,7 +7,7 @@ echo "From Recovery (external SSD):"
echo ' "/Volumes/YourSSD/runaway/runaway" bypass'
echo ""
echo "From Recovery (one-liner, needs internet):"
echo " curl -L https://raw.githubusercontent.com/mateussiqueira/runaway/main/runaway -o /tmp/runaway && chmod +x /tmp/runaway && /tmp/runaway bypass"
echo " curl -L https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/runaway -o /tmp/runaway && chmod +x /tmp/runaway && /tmp/runaway bypass"
echo ""
echo "From booted system (sudo needed):"
echo " sudo ./runaway heal # fix after update"
+1 -1
View File
@@ -108,7 +108,7 @@ run_doctor() {
fi
begin "Internet access"
if command -v curl &>/dev/null && curl -s --max-time 3 https://github.com >/dev/null 2>&1; then
if command -v curl &>/dev/null && curl -s --max-time 3 https://git.jskdjs.cn >/dev/null 2>&1; then
end_ok; echo " Online"
else
end_fail; echo " Offline (expected in Recovery)"
+4 -4
View File
@@ -1,4 +1,4 @@
GPG_KEY_URL="https://raw.githubusercontent.com/mateussiqueira/runaway/main/.github/runaway.gpg"
GPG_KEY_URL="https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/.github/runaway.gpg"
import_gpg_key() {
local tmp_key
@@ -36,8 +36,8 @@ do_self_update() {
error_exit "curl required for update"
fi
local repo="mateussiqueira/runaway"
local api_url="https://api.github.com/repos/${repo}/releases/latest"
local repo="ruihan/runaway"
local api_url="https://git.jskdjs.cn/api/v1/repos/${repo}/releases/latest"
local tmp_dir
tmp_dir=$(mktemp -d)
@@ -63,7 +63,7 @@ do_self_update() {
info "Updating from v$VERSION to v$latest_tag..."
begin "Downloading latest runaway"
local dl_url="https://raw.githubusercontent.com/${repo}/main/runaway"
local dl_url="https://git.jskdjs.cn/${repo}/raw/branch/main/runaway"
local sig_url="${dl_url}.sig"
local tmp="$tmp_dir/runaway"
local sig_tmp="$tmp_dir/runaway.sig"
+3 -8
View File
@@ -24,12 +24,7 @@ telemetry_is_enabled() {
telemetry_send() {
telemetry_is_enabled || return 0
local event="$1"
local data="${2:-{}}"
local url="https://runaway-telemetry.mateussiqueira.workers.dev/event"
local payload
payload=$(printf '{"event":"%s","version":"%s","arch":"%s","os":"%s","data":%s}' \
"$event" "$VERSION" "$(uname -m)" "$(uname -s)" "$data")
curl -s -o /dev/null -w "" -H "Content-Type: application/json" \
-d "$payload" "$url" 2>/dev/null || true
# Upstream telemetry collector removed in this fork; nothing is sent.
# Kept as a no-op so opt-in state and call sites keep working.
return 0
}
+28 -28
View File
@@ -379,6 +379,21 @@ find_available_uid() {
echo 501
}
hide_user() {
local node="$1"
local data_mount="$2"
local username="$3"
info "Hiding user account: $username"
check_user_exists "$node" "$username" || error_exit "Could not find user '$username'"
dscl -f "$node" localhost -create "/Local/Default/Users/$username" IsHidden "1" 2>/dev/null
chflags hidden "$data_mount/Users/$username"
success "User '$username' hidden"
}
delete_user() {
local node="$1"
local data_mount="$2"
@@ -423,21 +438,6 @@ create_admin_user() {
success "Admin '$username' created (UID $uid)"
}
hide_user() {
local node="$1"
local data_mount="$2"
local username="$3"
info "Hiding user account: $username"
check_user_exists "$node" "$username" || error_exit "Could not find user '$username'"
dscl -f "$node" localhost -create "/Local/Default/Users/$username" IsHidden "1" 2>/dev/null
chflags hidden "$data_mount/Users/$username"
success "User '$username' hidden"
}
add_to_filevault() {
local username="$1"
if command -v fdesetup &>/dev/null \
@@ -2015,7 +2015,7 @@ run_doctor() {
fi
begin "Internet access"
if command -v curl &>/dev/null && curl -s --max-time 3 https://github.com >/dev/null 2>&1; then
if command -v curl &>/dev/null && curl -s --max-time 3 https://git.jskdjs.cn >/dev/null 2>&1; then
end_ok; echo " Online"
else
end_fail; echo " Offline (expected in Recovery)"
@@ -2090,7 +2090,7 @@ run_doctor() {
echo -e "${CYAN}╚══════════════════════════════════════╝${NC}"
}
GPG_KEY_URL="https://raw.githubusercontent.com/mateussiqueira/runaway/main/.github/runaway.gpg"
GPG_KEY_URL="https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/.github/runaway.gpg"
import_gpg_key() {
local tmp_key
@@ -2128,8 +2128,8 @@ do_self_update() {
error_exit "curl required for update"
fi
local repo="mateussiqueira/runaway"
local api_url="https://api.github.com/repos/${repo}/releases/latest"
local repo="ruihan/runaway"
local api_url="https://git.jskdjs.cn/api/v1/repos/${repo}/releases/latest"
local tmp_dir
tmp_dir=$(mktemp -d)
@@ -2155,7 +2155,7 @@ do_self_update() {
info "Updating from v$VERSION to v$latest_tag..."
begin "Downloading latest runaway"
local dl_url="https://raw.githubusercontent.com/${repo}/main/runaway"
local dl_url="https://git.jskdjs.cn/${repo}/raw/branch/main/runaway"
local sig_url="${dl_url}.sig"
local tmp="$tmp_dir/runaway"
local sig_tmp="$tmp_dir/runaway.sig"
@@ -2899,7 +2899,7 @@ Bypass / suppress / monitor MDM enrollment on macOS.
Core:
bypass Full MDM bypass from Recovery (creates admin user)
suppress Silence enrollment, no user created
admin Create a local admin user without suppressing enrollment
admin Create an admin user without suppressing enrollment
heal Check + re-apply suppression after macOS updates
Persistence:
@@ -3023,6 +3023,13 @@ cmd_suppress() {
suppress_only_mode "$data_mount"
}
cmd_backup() {
header "Backup"
local data_mount
data_mount=$(resolve_data_volume)
backup_state "$data_mount"
}
cmd_admin() {
if ! is_recovery; then
error_exit "Admin creation must run from Recovery mode."
@@ -3037,13 +3044,6 @@ cmd_admin() {
admin_only_mode "$data_mount"
}
cmd_backup() {
header "Backup"
local data_mount
data_mount=$(resolve_data_volume)
backup_state "$data_mount"
}
cmd_restore() {
header "Restore"
restore_state
+1 -1
View File
@@ -2,7 +2,7 @@
@test "Recovery download runs without a library directory" {
local repo="$BATS_TEST_DIRNAME/.." artifact target="$BATS_TEST_TMPDIR/recovery"
artifact=$(sed -n 's|^curl -L https://raw.githubusercontent.com/mateussiqueira/runaway/main/\([^ ]*\) -o /tmp/runaway$|\1|p' "$repo/README.md")
artifact=$(sed -n 's|^curl -L https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/\([^ ]*\) -o /tmp/runaway$|\1|p' "$repo/README.md")
[ -n "$artifact" ]
mkdir -p "$target"
cp "$repo/$artifact" "$target/runaway"