Skip to content
Closed
Show file tree
Hide file tree
Changes from all 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
5 changes: 4 additions & 1 deletion .github/workflows/build_release_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,23 @@ jobs:
with:
repository: 'dlang/dmd'
ref: ${{ inputs.release_branch }}
fetch-depth: 0
path: 'dmd'

- name: Clone phobos
uses: actions/checkout@v4
with:
repository: 'dlang/phobos'
ref: ${{ inputs.release_branch }}
fetch-depth: 0
path: 'phobos'

- name: Clone dlang.org
uses: actions/checkout@v4
with:
repository: 'dlang/dlang.org'
ref: ${{ inputs.release_branch }}
fetch-depth: 0
path: 'dlang.org'

# Fetch host compiler
Expand Down Expand Up @@ -126,7 +129,7 @@ jobs:
include:
- os: ubuntu-22.04
target: linux
- os: macos-13
- os: macos-14
target: osx
- os: windows-2022
target: windows
Expand Down
7 changes: 5 additions & 2 deletions create_dmd_release/build_all.d
Original file line number Diff line number Diff line change
Expand Up @@ -636,9 +636,12 @@ int main(string[] args)
immutable ver = gitTag.chompPrefix("v");
mkdirRecurse("build");

version (NoVagrant) version(linux) {} else
if (!skipDocs)
version (NoVagrant)
{
version(linux) {}
else if (!skipDocs)
copyDirectory("docs", workDir);
}

foreach (p; platforms)
{
Expand Down
11 changes: 4 additions & 7 deletions osx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ TARGET_DIR=data
# TARGET_SITE=erdani.com
# TARGET_DIR=d

MAKER:=$(shell \
if [ -f /Developer/usr/bin/packagemaker ];\
then echo /Developer/usr/bin/packagemaker;\
else echo /Applications/PackageMaker.app/Contents/MacOS/PackageMaker;\
fi)

all: dmd.${VERSION}.dmg
rsync -az $< ${TARGET_SITE}:${TARGET_DIR}/dmd.${VERSION}.dmg

Expand All @@ -37,7 +31,10 @@ dmd.${VERSION}.dmg: dmd.${VERSION}.osx.zip
rm -rf dmg/
mkdir -p dmg/DMD2
cp uninstall.command dmg/DMD2/
${MAKER} -d dmd.pmdoc -o dmg/DMD2/DMD2.pkg --target 10.5
pkgbuild --root dmd/ \
--version ${VERSION} --identifier org.dlang.dmd.dmd2 \
--install-location /Library/D/dmd --scripts scripts/ \
--min-os-version 10.5 dmg/DMD2/DMD2.pkg
hdiutil create -srcfolder dmg/DMD2 $@

clean:
Expand Down
1 change: 0 additions & 1 deletion osx/dmd.pmdoc/01dmd-contents.xml

This file was deleted.

1 change: 0 additions & 1 deletion osx/dmd.pmdoc/01dmd.xml

This file was deleted.

50 changes: 0 additions & 50 deletions osx/dmd.pmdoc/index.xml

This file was deleted.

21 changes: 8 additions & 13 deletions osx/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,14 @@ The it will copy the dmd.conf or dmd2.conf file into dmd/bin, this is
needed because the installer will create symlinks and the dmd.conf
need to have hard coded paths.

Then it will run packagemaker to create the installer, it will use
dmd.pmdoc or dmd2.pmdoc, it contains the GUI for the installer and
what and how to install. packagemaker will also pack post-install.sh,
it creates symlinks. It will also package the contents of the dmd
directory into the .pkg file it will create. The .pkg file will be
saved in dmg/DMD then the uninstall.command file will be copied here
to, it's a regular shell script that uninstalls everything, it has
".command" as the file extension because then you can double click on
it in Finder and it will launch a terminal and run the script.
Then it will run pkgbuild to create the installer. pkgbuild will
also pack scripts/postinstall, it creates symlinks. It will also
package the contents of the dmd directory into the .pkg file it
will create. The .pkg file will be saved in dmg/DMD then the
uninstall.command file will be copied here to, it's a regular shell
script that uninstalls everything, it has ".command" as the file
extension because then you can double click on it in Finder and it
will launch a terminal and run the script.

After the installer is created it will run hdiutil on the dmg
directory and create a .dmg file with the name you gave with the -o
Expand All @@ -59,9 +58,5 @@ graphical user interface. It's very easy to enable vnc: Apple Menu ->
System Preferences -> Sharing -> enable Screen Sharing -> Computer
Settings... -> VNC viewers ...

You will need the GUI to run PackageMaker and look at the pmdoc files,
if you don't want to read xml.


/Jacob Carlborg

File renamed without changes.
Loading