diff --git a/.github/workflows/build-installers.yml b/.github/workflows/build-installers.yml index b2d9cc5..dd071bc 100644 --- a/.github/workflows/build-installers.yml +++ b/.github/workflows/build-installers.yml @@ -33,6 +33,12 @@ jobs: - name: Checkout uses: actions/checkout@v5 + - name: Fetch DIALS LICENSE + env: + DIALS_VERSION: ${{ inputs.version }} + run: | + curl -fsSL "https://raw.githubusercontent.com/dials/dials/v${DIALS_VERSION}/LICENSE" -o LICENSE + - name: Set up conda with constructor uses: conda-incubator/setup-miniconda@v4 with: diff --git a/construct.yaml b/construct.yaml index cfc13af..dc69363 100644 --- a/construct.yaml +++ b/construct.yaml @@ -3,6 +3,10 @@ name: DIALS version: "{{ version }}" channels: - "https://conda.anaconda.org/conda-forge/" +license_file: LICENSE +welcome_image: dials_logo_164x314.png +header_image: dials_header_150x57.png +icon_image: dials_icon_256x256.png post_install: post.sh # [unix] post_install: post.bat # [win] default_prefix: "$HOME/dials/v{{ version }}" # [unix] diff --git a/dials_header_150x57.png b/dials_header_150x57.png new file mode 100644 index 0000000..19259b0 Binary files /dev/null and b/dials_header_150x57.png differ diff --git a/dials_icon_256x256.png b/dials_icon_256x256.png new file mode 100644 index 0000000..0aaac7a Binary files /dev/null and b/dials_icon_256x256.png differ diff --git a/dials_logo_164x314.png b/dials_logo_164x314.png new file mode 100644 index 0000000..c87a92f Binary files /dev/null and b/dials_logo_164x314.png differ diff --git a/post.bat b/post.bat index 3d9afac..42108a2 100644 --- a/post.bat +++ b/post.bat @@ -95,6 +95,7 @@ if not exist "%POWERSHELL_EXE%" ( " [void](New-Item -ItemType Directory -Force -Path $Dir);" ^ " $S = $W.CreateShortcut((Join-Path $Dir 'Launch DIALS environment.lnk'));" ^ " $S.TargetPath = '%PREFIX%\dials_env.bat';" ^ + " $S.IconLocation = '%PREFIX%\icon.ico,0';" ^ " $S.WorkingDirectory = $env:USERPROFILE;" ^ " $S.Save();" ^ " Write-Output 'Shortcut created successfully'" ^