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

Add Diskuv.OCaml.1.0.0.0 #69112

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 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
70 changes: 70 additions & 0 deletions manifests/d/Diskuv/OCaml/1.0.0.0/Diskuv.OCaml.installer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.1.0.schema.json
# Follow: https://docs.microsoft.com/en-us/windows/package-manager/package/manifest?tabs=minschema%2Cversion-example#tips-and-best-practices
PackageIdentifier: "Diskuv.OCaml"
PackageVersion: "1.0.0.0"
Scope: user
UpgradeBehavior: install
Commands:
# /bin
- opam
- opam-installer
- opam-putenv
# /usr/bin (max 16 Commands so took only the most commonly used)
- dune
- ocaml
- ocamlc
- ocamldebug
- ocamldoc
- ocamlfind
- ocamlformat
- ocamllsp
- ocamlopt
- ocamlrun
- ocp-indent
- utop
- with-dkml
Platform:
- "Windows.Desktop"
# Minimum OS comes from https://github.com/diskuv/dkml-runtime-distribution/blob/ff7e6bcbf3dbdb37e64b20a57e2dea0fa9d27ed5/src/windows/Machine/Machine.psm1#L14:
# > $Windows10SdkVer = "18362"
MinimumOSVersion: "10.0.18362.0"
InstallerType: exe
InstallModes:
- silent
- interactive
Dependencies:
PackageDependencies:
# ---- Visual Studio Build Tools ----

# Minimum comes from https://github.com/diskuv/dkml-runtime-distribution/blob/ff7e6bcbf3dbdb37e64b20a57e2dea0fa9d27ed5/src/windows/Machine/Machine.psm1#L94-L105:
# > $VcStudioVcToolsMajorVer = 16
# > $VcStudioVcToolsMinorVer = 6
- PackageIdentifier: Microsoft.VisualStudio.2019.BuildTools
MinimumVersion: 16.6.0

# ---- Git ----
# Minimum comes from https://github.com/diskuv/dkml-component-ocamlcompiler/blob/66af047444345a012213980269faffdf8ea83fb0/assets/staging-files/win32/setup-userprofile.ps1#L602-605
- PackageIdentifier: Git.Git
MinimumVersion: 2.34.0
Installers:
- Architecture: "x64"

# TODO: InstallerUrl/InstallerSha256/ReleaseDate need to be updated by contributors/sign.sh!
InstallerUrl: "https://github.com/diskuv/dkml-installer-ocaml/releases/download/v1.0.0/setup-diskuv-ocaml-windows_x86_64-1.0.0.exe"
InstallerSha256: 32f010577a791d5595760cbb5136bd60049ffd37c8d44e68e7a8729319670a48
ReleaseDate: 2022-08-08

InstallerSwitches:
Silent: --ci --quiet --color=never
SilentWithProgress: --ci
Interactive: --color=always
InstallLocation: --prefix "<INSTALLPATH>"

AppsAndFeaturesEntries:
# Keep in sync with installer\src\private_common.ml which is used by
# https://github.com/diskuv/dkml-install-api/blob/main/package/console/common/Windows_registry.ml
- Publisher: Diskuv, Inc.
DisplayName: Diskuv OCaml
DisplayVersion: dev
ManifestType: "installer"
ManifestVersion: "1.1.0"
41 changes: 41 additions & 0 deletions manifests/d/Diskuv/OCaml/1.0.0.0/Diskuv.OCaml.locale.en-US.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# yaml-language-server: $schema=https://aka.ms/winget-manifest.defaultLocale.1.1.0.schema.json

PackageIdentifier: "Diskuv.OCaml"
PackageVersion: "1.0.0.0"
PackageLocale: "en-US"
Publisher: "Diskuv, Inc."
PublisherUrl: "https://www.diskuv.com/"
PrivacyUrl: "https://diskuv.com/legal#privacy_policy"
PackageName: "Diskuv OCaml"
PackageUrl: "https://diskuv.gitlab.io/diskuv-ocaml/#introduction"
License: "Apache License, Version 2.0"
LicenseUrl: "https://github.com/diskuv/dkml-installer-ocaml/blob/main/LICENSE"
Copyright: "Copyright 2022 Diskuv, Inc."
CopyrightUrl: "https://github.com/diskuv/dkml-installer-ocaml/blob/main/LICENSE"
PublisherSupportUrl: "https://github.com/diskuv/dkml-installer-ocaml/issues"
ShortDescription: "The Windows-friendly distribution of OCaml."
Description: |-
The Diskuv OCaml distribution is an open-source set of software that supports software development in pure OCaml. The distribution's strengths are its:

✓ full compatibility with OCaml standards like Opam, Dune and ocamlfind
✓ laser focus on "native" development (desktop software, mobile apps and embedded software) through support for the standard native compilers like Visual Studio and Xcode
✓ ease-of-use through simplified installers and simple productivity commands; high school students should be able to use it
✓ security through reproducibility, versioning and from-source builds

These alternatives may be better depending on your use case:

* Developing in a Javascript first environment? Have a look at Esy and Reason
* Developing operating system kernels? Have a look at Mirage OS
* Developing Linux server software like web servers? Plain old OCaml on Debian, etc. works well
* Writing compilers or proofs? Plain old OCaml works really well
* Wanting quick installations? Use anything but Diskuv OCaml! Diskuv OCaml will conduct from-source builds unless it can guarantee (and code sign) the binaries are reproducible. Today that means a lot of compiling.
Moniker: dkml
Tags:
- foss
- language
- ocaml
- open-source
- programming
ManifestType: "defaultLocale"
ManifestVersion: "1.1.0"
ReleaseNotesUrl: https://github.com/diskuv/dkml-installer-ocaml/releases/tag/v1.0.0
6 changes: 6 additions & 0 deletions manifests/d/Diskuv/OCaml/1.0.0.0/Diskuv.OCaml.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# yaml-language-server: $schema=https://aka.ms/winget-manifest.version.1.1.0.schema.json
PackageIdentifier: "Diskuv.OCaml"
PackageVersion: "1.0.0.0"
DefaultLocale: "en-US"
ManifestType: "version"
ManifestVersion: "1.1.0"