{"id":18841909,"url":"https://github.com/diskuv/dkml-component-ocamlcompiler","last_synced_at":"2026-01-30T15:30:13.473Z","repository":{"id":41287753,"uuid":"449537493","full_name":"diskuv/dkml-component-ocamlcompiler","owner":"diskuv","description":"DKML component for ocamlrun","archived":false,"fork":false,"pushed_at":"2023-11-30T07:20:45.000Z","size":634,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-11-30T08:28:07.362Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/diskuv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-01-19T03:46:16.000Z","updated_at":"2024-04-15T07:00:08.686Z","dependencies_parsed_at":"2023-11-30T08:48:55.375Z","dependency_job_id":null,"html_url":"https://github.com/diskuv/dkml-component-ocamlcompiler","commit_stats":null,"previous_names":[],"tags_count":20,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diskuv%2Fdkml-component-ocamlcompiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diskuv%2Fdkml-component-ocamlcompiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diskuv%2Fdkml-component-ocamlcompiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diskuv%2Fdkml-component-ocamlcompiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diskuv","download_url":"https://codeload.github.com/diskuv/dkml-component-ocamlcompiler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239780120,"owners_count":19695734,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T02:53:01.589Z","updated_at":"2026-01-30T15:30:13.364Z","avatar_url":"https://github.com/diskuv.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# enduser-ocamlcompiler\n\nThe ocamlcompiler component installs an OCaml compiler in the end-user\ninstallation directory.\n\nThese are components that can be used with [dkml-install-api](https://diskuv.github.io/dkml-install-api/index.html)\nto generate installers.\n\n## Testing Locally\n\nFIRST, make sure any changes are committed with `git commit`.\n\nSECOND,\n\nOn Windows, assuming you already have installed a DKML distribution, run:\n\n```powershell\n# Use an Opam install which will download supporting files\nopam install ./dkml-component-network-ocamlcompiler.opam\nopam pin dkml-component-staging-desktop-full git+https://gitlab.com/dkml/components/dkml-component-desktop.git --yes\nopam pin dkml-component-staging-withdkml git+https://gitlab.com/dkml/components/dkml-component-desktop.git --yes\n\n# Set vars we will use below\n$ocshare = opam var dkml-component-network-ocamlcompiler:share\n$op32share = opam var dkml-component-staging-opam32:share\n$op64share = opam var dkml-component-staging-opam64:share\n$fullshare = opam var dkml-component-staging-desktop-full:share\n$withdkmlshare = opam var dkml-component-staging-withdkml:share\n$confshare = opam var dkml-component-staging-dkmlconfdir:share\n\u0026 $env:DiskuvOCamlHome\\dkmlvars.ps1\n\n# Print Help\n\u0026 \"$ocshare/staging-files/generic/setup_machine.bc.exe\" --help\n\u0026 \"$ocshare/staging-files/generic/setup_userprofile.bc.exe\" --help\n\n# Same help if you build directly\ndune build\n\u0026 \"_build\\default\\src\\installtime\\setup-userprofile\\setup_userprofile.exe\" --help\n\n# After opam install we mimic the placing of binaries that\n# dkml-component-offline-desktop-full does\n\nwith-dkml install -d \"$env:TEMP\\ocamlcompiler-t\" \"$env:TEMP\\ocamlcompiler-up\"\nopam exec -- diskuvbox copy-dir `\n    \"$withdkmlshare\\staging-files\\windows_x86_64\" `\n    \"$fullshare\\staging-files\\windows_x86_64\" `\n    \"$env:TEMP\\ocamlcompiler-up\"\nopam exec -- diskuvbox copy-file `\n    \"$fullshare\\staging-files\\windows_x86_64\\bin\\dkml-fswatch.exe\" `\n    \"$env:TEMP\\ocamlcompiler-up\\tools\\fswatch\\fswatch.exe\"\n\n# After opam install that you can run either of them properly ...\n\nopam exec -- dune build src/installtime/setup-userprofile/setup_userprofile.exe\n_build/default/src/installtime/setup-userprofile/setup_userprofile.exe `\n    --scripts-dir=assets\\staging-files\\win32 `\n    --dkml-confdir-exe=\"$confshare\\staging-files\\windows_x86_64\\bin\\dkml-confdir.exe\" `\n    --control-dir=\"$env:TEMP\\ocamlcompiler-up\" `\n    --temp-dir=\"$env:TEMP\\ocamlcompiler-t\" `\n    --dkml-dir \"$ocshare\\staging-files\\windows_x86_64\\dkmldir\" `\n    --target-abi windows_x86_64 `\n    --msys2-dir \"$env:DiskuvOCamlMSYS2Dir\" `\n    --opam-exe \"$op64share\\staging-files\\windows_x86_64\\bin\\opam.exe\" `\n    -v -v\n\nopam exec -- dune build src/installtime/uninstall-userprofile/uninstall_userprofile.exe\n_build/default/src/installtime/uninstall-userprofile/uninstall_userprofile.exe `\n    --audit-only `\n    --target-abi windows_x86_64 `\n    --scripts-dir=assets/staging-files/win32 `\n    --control-dir=\"$env:TEMP\\ocamlcompiler-up\" `\n    -v -v\n```\n\n## Contributing\n\nSee [the Contributors section of dkml-install-api](https://github.com/diskuv/dkml-install-api/blob/main/contributors/README.md).\n\n## Status\n\n[![Syntax check](https://github.com/diskuv/dkml-component-ocamlcompiler/actions/workflows/syntax.yml/badge.svg)](https://github.com/diskuv/dkml-component-ocamlcompiler/actions/workflows/syntax.yml)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiskuv%2Fdkml-component-ocamlcompiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiskuv%2Fdkml-component-ocamlcompiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiskuv%2Fdkml-component-ocamlcompiler/lists"}