Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 20, 2023
0 parents commit 18651a8
Show file tree
Hide file tree
Showing 24 changed files with 749 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: 🍎 MacOS
on:
push:
branches:
- main
# TODO: probably create a nightly job

jobs:
package:
runs-on: macos-13
matrix:
include:
- platform: 'osx-64'
- platform: 'osx-arm64'

name: Package for macOS
steps:
- name: 🐣 Checkout
uses: actions/checkout@v3

- name: 🌾 Get latest version
shell: bash
run: |
QGIS_VERSION=$(conda search -c conda-forge -f qgis | grep py311 | tail -n 1 | tr -s ' ' | cut -f 2 -d ' ')
QGIS_VERSION_SHORT=$(echo $QGIS_VERSION | cut -d'.' -f 1,2)
echo QGIS_VERSION=$QGIS_VERSION >> $GITHUB_ENV
echo QGIS_VERSION_SHORT=$QGIS_VERSION_SHORT >> $GITHUB_ENV
sed -i s/__ver__/$QGIS_VERSION/g construct.yaml
sed -i s/__shortver__/$QGIS_VERSION_SHORT/g construct.yaml
- name: 📦 Package
shell: bash
run: |
conda install constructor
constructor --platform=${{ matrix.platform }}
- name: 📦 Upload artifacts
uses: actions/upload-artifact@v3
with:
path: '*.pkg'
352 changes: 352 additions & 0 deletions COPYING

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Creates QGIS installer packages from conda
19 changes: 19 additions & 0 deletions construct.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: QGIS
version: "__ver__"
channels:
- "conda-forge"
specs:
- qgis=__ver__
- python=3.11
license_file: COPYING
# welcome_image: photo.png # [win]
installer_type: pkg
pkg_name: QGIS-__shortver__.app
default_location_pkg: /Applications
reverse_domain_identifier: org.qgis.QGIS
# notarization_identity_name: XXX
mac_bundle:
name: QGIS-__shortver__
info_plist: extra/Info.plist
resources: extra/Resources
executable: bin/qgis
Loading

0 comments on commit 18651a8

Please sign in to comment.