Archived
feat: add cross-platform installer scripts
- Add install.sh for Linux/macOS (curl installer) - Detects OS and architecture - Sets up systemd service on Linux - Sets up launchd agent on macOS - Auto-starts service on boot - Add install.ps1 for Windows (PowerShell installer) - Installs Windows Service (admin) or Scheduled Task (user) - Adds to PATH automatically - Add installer/barn.iss (Inno Setup script) - Generates setup-barn-vX.X.X-windows-x64.exe - Full Windows installer with uninstaller - Update release workflow to include installers - Update README with quick install instructions Closes #26, #27, #29 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f916fc2f8b
commit
8ded382831
5 files changed
+756
-19
No files matched your search
@@ -48,12 +48,28 @@ jobs:
|
||||
Move-Item -Path "target\barn.exe" -Destination "target\${{ matrix.artifact }}.exe" -Force
|
||||
Get-ChildItem target\*.exe
|
||||
|
||||
- name: Build Windows installer
|
||||
if: runner.os == 'Windows'
|
||||
shell: pwsh
|
||||
run: |
|
||||
$version = "${{ github.ref_name }}" -replace '^v', ''
|
||||
choco install innosetup -y
|
||||
iscc /DAppVersion=$version installer\barn.iss
|
||||
Get-ChildItem dist\*.exe
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ matrix.artifact }}
|
||||
path: target/${{ matrix.artifact }}*
|
||||
|
||||
- name: Upload Windows installer
|
||||
if: runner.os == 'Windows'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: windows-installer
|
||||
path: dist/*.exe
|
||||
|
||||
release:
|
||||
needs: build-native
|
||||
runs-on: ubuntu-latest
|
||||
@@ -69,6 +85,9 @@ jobs:
|
||||
run: |
|
||||
mkdir release
|
||||
find artifacts -type f -exec mv {} release/ \;
|
||||
# Add installer scripts
|
||||
cp install.sh release/
|
||||
cp install.ps1 release/
|
||||
cd release
|
||||
sha256sum * > SHA256SUMS
|
||||
ls -la
|
||||
|
||||
Reference in new issue
Block a user