Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable pkg installers #434

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Next Next commit
enable pkg installers
  • Loading branch information
jaimergp committed Mar 2, 2023
commit 9543d405a275d751cedff96ac2dd88c062f76523
9 changes: 9 additions & 0 deletions Miniforge3/construct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ license_file: ../LICENSE
initialize_conda: True
initialize_by_default: False

# macOS PKG options
installer_type: all # [osx]
welcome_image: osx_pkg_background.png # [osx]
# Reset everything to system default (no Anaconda stuff)
# We can customize it if needed
welcome_text: "" # [osx]
readme_text: "" # [osx]
conclusion_text: "" # [osx]

specs:
{% if name.endswith("pypy3") %}
- python 3.9.* *_pypy
Expand Down
Binary file added Miniforge3/osx_pkg_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions scripts/osx_pkg_background.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""
Run this to generate a macOS PKG background with
the conda-forge anvil logo in the bottom left corner
"""
# needs 'pillow' package
from PIL import Image, ImageOps

# logo taken from https://github.com/conda-forge/marketing/084d589/main/logo/just_anvil_black.png
logo = Image.open("just_anvil_black.png")
background = Image.new("RGBA", (1227, 600), (0, 0, 0, 0))
background.paste(ImageOps.contain(logo, (290, 290)), (30, 460))
background.save("osx_pkg_background.png", format="png")