Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 6 additions & 30 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,11 @@ jobs:
tag_name: ${{ github.ref_name }}
files: dist/*

binaries:
name: Build ${{ matrix.platform }} binary
runs-on: ${{ matrix.os }}
binary-windows:
name: Build Windows binary
runs-on: windows-latest
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
platform: windows
- os: macos-latest
platform: macos
steps:
- uses: actions/checkout@v7

Expand All @@ -85,35 +77,19 @@ jobs:
- name: Install PyInstaller
run: uv pip install pyinstaller

- name: Build executable (Windows)
if: matrix.platform == 'windows'
- name: Build executable
run: >
uv run --no-sources pyinstaller --onefile main.py
--name DatasphereAutomation
--icon src/datasphere_cli/static/datasphere.ico

- name: Build executable (macOS)
if: matrix.platform == 'macos'
run: >
uv run --no-sources pyinstaller --onefile main.py
--name DatasphereAutomation

- name: Package artifact with version
shell: bash
run: |
VERSION="${GITHUB_REF_NAME#v}"
mkdir -p dist_out
if [ "${{ matrix.platform }}" = "windows" ]; then
cp "dist/DatasphereAutomation.exe" \
"dist_out/DatasphereAutomation-${VERSION}-windows.exe"
else
# Package the binary into a compressed DMG image
mkdir -p dmg_root
cp "dist/DatasphereAutomation" dmg_root/
hdiutil create -volname "Datasphere CLI" \
-srcfolder dmg_root -ov -format UDZO \
"dist_out/DatasphereAutomation-${VERSION}-macos.dmg"
fi
cp "dist/DatasphereAutomation.exe" \
"dist_out/DatasphereAutomation-${VERSION}-windows.exe"

- name: Upload binary to GitHub Release
uses: softprops/action-gh-release@v3
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,22 +80,22 @@ provides scripts for managing:

----

### Option B: macOS (Release, DMG)
### Option B: macOS (PyPI)

1. Download the latest release asset:
`DatasphereAutomation-<version>-macos.dmg`.
1. Install the CLI as a tool with [uv](https://docs.astral.sh/uv/)
(or use pipx):

2. Open the DMG and copy `DatasphereAutomation` to a location of your
choice (e.g. your home directory).
```bash
uv tool install datasphere-cli
```

3. Remove Gatekeeper quarantine and run it from the terminal:
2. Run it from the terminal:

```bash
xattr -d com.apple.quarantine DatasphereAutomation
./DatasphereAutomation
datasphere
```

**Note:** The Mac app can't be opened via double-click.
Update to the latest release with `uv tool upgrade datasphere-cli`.

----

Expand Down
Loading