Skip to content

Commit 41daa35

Browse files
authored
Merge pull request #58 from githubnext/copilot/optimize-step3-clone-autoloop
Make install.md Step 3 cross-platform (drop git clone)
2 parents cd21893 + 58bbe69 commit 41daa35

1 file changed

Lines changed: 42 additions & 14 deletions

File tree

install.md

Lines changed: 42 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,34 +53,62 @@ gh aw init
5353

5454
**What this does**: Configures `.gitattributes`, creates the dispatcher agent, and sets up Copilot setup steps.
5555

56-
## Step 3: Clone Autoloop and Copy Files
56+
## Step 3: Download Autoloop and Copy Files
5757

58-
Clone the Autoloop repository and copy its files into this repo:
58+
Download the Autoloop source as a zip and copy the files you need into this repo. This avoids a `git clone` (no `.git` history is downloaded, and `git` is not required) and works on Linux, macOS, and Windows.
5959

60-
```bash
61-
git clone https://github.com/githubnext/autoloop /tmp/autoloop
62-
```
60+
Use the snippet for your shell:
6361

64-
Copy the workflow definitions:
62+
<details open>
63+
<summary><strong>Linux &amp; macOS (bash / zsh)</strong></summary>
6564

6665
```bash
67-
cp -r /tmp/autoloop/workflows/ .github/workflows/
66+
# Download and extract (no git history)
67+
curl -fL https://github.com/githubnext/autoloop/archive/refs/heads/main.zip -o /tmp/autoloop.zip
68+
unzip -q /tmp/autoloop.zip -d /tmp/autoloop_extract
69+
70+
# Create target directories
71+
mkdir -p .github/workflows .github/ISSUE_TEMPLATE .autoloop/programs
72+
73+
# Copy files
74+
cp -R /tmp/autoloop_extract/autoloop-main/workflows/. .github/workflows/
75+
cp -R /tmp/autoloop_extract/autoloop-main/.github/ISSUE_TEMPLATE/. .github/ISSUE_TEMPLATE/
76+
77+
# Clean up
78+
rm -rf /tmp/autoloop.zip /tmp/autoloop_extract
6879
```
6980

70-
Copy the issue template and create the Autoloop directories:
81+
If `unzip` is not installed (e.g. some minimal Linux images), replace the `unzip` line above with this `tar` command — it extracts zip archives on macOS and most modern Linux distributions:
7182

7283
```bash
73-
mkdir -p .github/ISSUE_TEMPLATE
74-
cp -r /tmp/autoloop/.github/ISSUE_TEMPLATE/ .github/ISSUE_TEMPLATE/
75-
mkdir -p .autoloop/programs
84+
mkdir -p /tmp/autoloop_extract && tar -xf /tmp/autoloop.zip -C /tmp/autoloop_extract
7685
```
7786

78-
Clean up:
87+
</details>
7988

80-
```bash
81-
rm -rf /tmp/autoloop
89+
<details>
90+
<summary><strong>Windows (PowerShell)</strong></summary>
91+
92+
```powershell
93+
# Download and extract (no git history)
94+
Invoke-WebRequest -Uri "https://github.com/githubnext/autoloop/archive/refs/heads/main.zip" -OutFile "$env:TEMP\autoloop.zip"
95+
Expand-Archive -Path "$env:TEMP\autoloop.zip" -DestinationPath "$env:TEMP\autoloop_extract" -Force
96+
97+
# Create target directories
98+
New-Item -ItemType Directory -Force -Path ".github/workflows", ".github/ISSUE_TEMPLATE", ".autoloop/programs" | Out-Null
99+
100+
# Copy files
101+
Copy-Item -Path "$env:TEMP\autoloop_extract\autoloop-main\workflows\*" -Destination ".github/workflows/" -Recurse -Force
102+
Copy-Item -Path "$env:TEMP\autoloop_extract\autoloop-main\.github\ISSUE_TEMPLATE\*" -Destination ".github/ISSUE_TEMPLATE/" -Recurse -Force
103+
104+
# Clean up
105+
Remove-Item -Path "$env:TEMP\autoloop.zip", "$env:TEMP\autoloop_extract" -Recurse -Force
82106
```
83107

108+
</details>
109+
110+
> **Note:** The snippets above download the latest `main` branch. To pin to a specific version, replace `refs/heads/main` with `refs/tags/<tag>` and the `autoloop-main` folder name with `autoloop-<tag>`.
111+
84112
## Step 4: Compile the Workflows
85113

86114
```bash

0 commit comments

Comments
 (0)