Windows code-signing and ".tgz" options for distro-build

This commit is contained in:
Matthew Flatt 2016-01-07 15:47:08 -07:00
parent 3e53a3ea42
commit 666c5f1557
2 changed files with 25 additions and 8 deletions

View File

@ -514,12 +514,20 @@ In more detail:
`make'. The `README' value is used as a file name to download `make'. The `README' value is used as a file name to download
from the server. from the server.
For a Mac OS X installer, set `SIGN_IDENTITY' to sign the To create a ".tgz" archive instead of an installer (or any
installer, where the value of `SIGN_IDENTITY' is the name to platform), set `TGZ_MODE' to "--tgz".
For a Mac OS X installer, set `SIGN_IDENTITY' as the name to
which the signing certificate is associated. Set `MAC_PKG_MODE' which the signing certificate is associated. Set `MAC_PKG_MODE'
to "--mac-pkg" to create a ".pkg" installer instead of a ".dmg" to "--mac-pkg" to create a ".pkg" installer instead of a ".dmg"
image. image.
For a Windows installer, set `OSSLSIGNCODE_ARGS_BASE64` as a
Base64 encoding of an S-expression for a list of argument strings
for `osslsigncode`. The `-n', `-t', `-in', and `-out' arguments
are provided to `osslsigncode` automatically, so supply the
others.
The `SERVER_CATALOG_PATH' and `SERVER_COLLECTS_PATH' makefile The `SERVER_CATALOG_PATH' and `SERVER_COLLECTS_PATH' makefile
variables specify paths at `SERVER' plus `SERVER_PORT' to access variables specify paths at `SERVER' plus `SERVER_PORT' to access
the package catalog and pre-built "collects" tree needed for a the package catalog and pre-built "collects" tree needed for a

View File

@ -234,6 +234,9 @@ VERSIONLESS_MODE =
# instead of a ".dmg" for drag-and-drop installation: # instead of a ".dmg" for drag-and-drop installation:
MAC_PKG_MODE = MAC_PKG_MODE =
# Set to "--tgz" to create a ".tgz" archive instead of an installer:
TGZ_MODE =
# Set to "--source --no-setup" to include packages in an installer # Set to "--source --no-setup" to include packages in an installer
# (or archive) only in source form: # (or archive) only in source form:
PKG_SOURCE_MODE = PKG_SOURCE_MODE =
@ -264,10 +267,14 @@ BUILD_STAMP =
# the default as the version number: # the default as the version number:
INSTALL_NAME = INSTALL_NAME =
# A signing identity (spaces allowed) for Mac OS X binaries in an # For Mac OS X, a signing identity (spaces allowed) for binaries in an
# installer: # installer:
SIGN_IDENTITY = SIGN_IDENTITY =
# For Windows, `osslsigncode' arguments other than `-n', `-t', `-in',
# and `-out' as a Base64-encoded, S-expression, list of strings:
OSSLSIGNCODE_ARGS_BASE64 =
# URL for a README file to include in an installer (empty for none, # URL for a README file to include in an installer (empty for none,
# spaces allowed): # spaces allowed):
README = http://$(SVR_PRT)/README.txt README = http://$(SVR_PRT)/README.txt
@ -447,7 +454,8 @@ PROP_ARGS = SERVER=$(SERVER) SERVER_PORT=$(SERVER_PORT) SERVER_HOSTS="$(SERVER_H
DIST_NAME="$(DIST_NAME)" DIST_BASE=$(DIST_BASE) \ DIST_NAME="$(DIST_NAME)" DIST_BASE=$(DIST_BASE) \
DIST_DIR=$(DIST_DIR) DIST_SUFFIX=$(DIST_SUFFIX) UPLOAD="$(UPLOAD)" \ DIST_DIR=$(DIST_DIR) DIST_SUFFIX=$(DIST_SUFFIX) UPLOAD="$(UPLOAD)" \
DIST_DESC="$(DIST_DESC)" README="$(README)" SIGN_IDENTITY="$(SIGN_IDENTITY)" \ DIST_DESC="$(DIST_DESC)" README="$(README)" SIGN_IDENTITY="$(SIGN_IDENTITY)" \
JOB_OPTIONS="$(JOB_OPTIONS)" OSSLSIGNCODE_ARGS_BASE64="$(OSSLSIGNCODE_ARGS_BASE64)" JOB_OPTIONS="$(JOB_OPTIONS)" \
TGZ_MODE=$(TGZ_MODE)
COPY_ARGS = $(PROP_ARGS) \ COPY_ARGS = $(PROP_ARGS) \
SERVER_CATALOG_PATH=$(SERVER_CATALOG_PATH) SERVER_COLLECTS_PATH=$(SERVER_COLLECTS_PATH) SERVER_CATALOG_PATH=$(SERVER_CATALOG_PATH) SERVER_COLLECTS_PATH=$(SERVER_COLLECTS_PATH)
@ -496,9 +504,10 @@ bundle-from-server:
$(RACKET) -l setup/unixstyle-install post-adjust "$(SOURCE_MODE)" "$(PKG_SOURCE_MODE)" racket bundle/racket $(RACKET) -l setup/unixstyle-install post-adjust "$(SOURCE_MODE)" "$(PKG_SOURCE_MODE)" racket bundle/racket
UPLOAD_q = --readme "$(README)" --upload "$(UPLOAD)" --desc "$(DIST_DESC)" UPLOAD_q = --readme "$(README)" --upload "$(UPLOAD)" --desc "$(DIST_DESC)"
DIST_ARGS_q = $(UPLOAD_q) $(RELEASE_MODE) $(SOURCE_MODE) $(VERSIONLESS_MODE) $(MAC_PKG_MODE) \ DIST_ARGS_q = $(UPLOAD_q) $(RELEASE_MODE) $(SOURCE_MODE) $(VERSIONLESS_MODE) \
$(MAC_PKG_MODE) $(TGZ_MODE) \
"$(DIST_NAME)" $(DIST_BASE) $(DIST_DIR) "$(DIST_SUFFIX)" \ "$(DIST_NAME)" $(DIST_BASE) $(DIST_DIR) "$(DIST_SUFFIX)" \
"$(SIGN_IDENTITY)" "$(SIGN_IDENTITY)" "$(OSSLSIGNCODE_ARGS_BASE64)"
# Create an installer from the build (with installed packages) that's # Create an installer from the build (with installed packages) that's
# in "bundle/racket": # in "bundle/racket":