Skip to content

Free fork of NotProton: Windows Steam games in Mac Steam, on CodeWeavers' Wine and Apple's Game Porting Toolkit

fix(installer): stop shipping the WineCX runtime and fix the license notes

raymondchins0b28b5ebfd6d
diff --git a/LICENSE.cjson b/LICENSE.cjson
new file mode 100644
index 0000000..3f18d86
--- /dev/null
+++ b/LICENSE.cjson
@@ -0,0 +1,23 @@
+cJSON 1.7.19 (vendor/cJSON.c, vendor/cJSON.h), compiled into notproton.dylib.
+License text from the source header:
+
+Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+*/
diff --git a/LICENSE.jsoncpp b/LICENSE.jsoncpp
new file mode 100644
index 0000000..00b86eb
--- /dev/null
+++ b/LICENSE.jsoncpp
@@ -0,0 +1,58 @@
+JsonCpp (steam-shim/jsoncpp.cpp, steam-shim/json/), compiled into steam.exe.
+License text from the amalgamated source's LICENSE section:
+
+The JsonCpp library's source code, including accompanying documentation,
+tests and demonstration applications, are licensed under the following
+conditions...
+
+The author (Baptiste Lepilleur) explicitly disclaims copyright in all
+jurisdictions which recognize such a disclaimer. In such jurisdictions,
+this software is released into the Public Domain.
+
+In jurisdictions which do not recognize Public Domain property (e.g. Germany as of
+2010), this software is Copyright (c) 2007-2010 by Baptiste Lepilleur, and is
+released under the terms of the MIT License (see below).
+
+In jurisdictions which recognize Public Domain property, the user of this
+software may choose to accept it either as 1) Public Domain, 2) under the
+conditions of the MIT License (see below), or 3) under the terms of dual
+Public Domain/MIT License conditions described here, as they choose.
+
+The MIT License is about as close to Public Domain as a license can get, and is
+described in clear, concise terms at:
+
+ http://en.wikipedia.org/wiki/MIT_License
+
+The full text of the MIT License follows:
+
+========================================================================
+Copyright (c) 2007-2010 Baptiste Lepilleur
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use, copy,
+modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+========================================================================
+(END LICENSE TEXT)
+
+The MIT license is compatible with both the GPL and commercial
+software, affording one all of the rights of Public Domain with the
+minor nuisance of being required to keep the above copyright notice
+and license text in the source code. Note also that by accepting the
+Public Domain "license" you can re-license your copy using whatever
+license you like.
diff --git a/NOTICE b/NOTICE
index 3edae92..b64cf04 100644
--- a/NOTICE
+++ b/NOTICE
@@ -74,41 +74,42 @@ same folder). nvapi64-shim.dll is Bridgeplay's own code, built from nvapi-shim/.
Shipped in the one-click installer (Bridgeplay-Installer.zip)
-------------------------------------------------------------
-Besides the app, the installer carries these unmodified archives, so a Mac can set
+The installer carries no app (Install.command downloads Bridgeplay.zip from this
+project's GitHub releases). It carries these unmodified archives, so a Mac can set
up without downloading them. The app installs the same archives (pinned by sha256
-in app/Sources/BridgeplayApp/Model/FreeEngine*.swift) when they are not there.
-
- WineCX runtime 4.7.3 (Libraries.tar.gz from
- https://github.com/dappermint/winecx-gptk/releases/tag/runtime-v4.7.3):
- Wine built from https://github.com/dappermint/winecx at
- e0aa380780b73e20fabcfe78fd42713b94929a53, LGPL-2.1-or-later, with the
- third-party libraries that runtime bundles under their own licenses.
- WINECX-RUNTIME-LIBRARIES.txt in the installer lists every one of them. Most
- are under the LGPL or permissive licenses. Some are under the GNU GPL: FFmpeg
- (libavcodec, libpostproc and the rest, built with --enable-gpl
- --enable-version3, so GPL-3.0-or-later), x264, x265, libdvdcss, libdvdread
- and libdvdnav (GPL-2.0-or-later); the GPL-3.0 text is LICENSE. libfdk-aac is
- under the Fraunhofer FDK AAC license, shipped as LICENSE.fdk-aac. The LGPL-2.1
- text is LICENSE.wine.
+in app/Sources/BridgeplayApp/Model/FreeEngine.swift) when they are not there.
+
DXMT (dxmt-e94c312.tar.gz, built from https://github.com/3Shain/dxmt at
e94c312f5c054263acf261cfa109edf13e757587; docs/DXMT.md), Copyright (c)
2023-2026 Feifan He for CodeWeavers, LGPL-2.1-or-later.
DXVK-macOS 1.10.3 (dxvk-macOS-async-v1.10.3-20230507-repack-builtin.tar.gz from
https://github.com/Gcenx/DXVK-macOS/releases/tag/v1.10.3-20230507-repack),
zlib license.
- Apple Game Porting Toolkit redistributables (gptk/: D3DMetal.framework and the
- wine/ libraries from the toolkit's /redist directory), Apple software under
- Apple's license, shipped as GPTK-License.rtf. Apple's license allows
- distributing it "solely for non-commercial purposes" (section 2A(iii)), and
- allows the Framework and Redistributables to be "distributed separately from
- the Apple Software" (section 2C). The wine/ libraries are Apple's build of
- Wine (LGPL-2.1-or-later); their source is the Wine source Apple publishes
- for the Game Porting Toolkit, which Raymond Chin will also provide on request
- under the offer below. How each condition of Apple's license is met:
+ Apple Game Porting Toolkit redistributables (gptk/: external/ with
+ D3DMetal.framework and libd3dshared.dylib, and wine/, from the toolkit's
+ /redist/lib directory), Apple software under Apple's license, shipped as
+ GPTK-License.rtf. Apple's license allows distributing it "solely for
+ non-commercial purposes" (section 2A(iii)), and allows the Framework and
+ Redistributables to be "distributed separately from the Apple Software"
+ (section 2C). The wine/ folder is not Wine: wine/x86_64-windows holds only
+ Apple's proprietary D3DMetal front-end DLLs (d3d10, d3d11, d3d12,
+ d3d12core, dxgi, nvapi64 and nvngx-on-metalfx.dll), and wine/x86_64-unix
+ holds only symlinks to external/libd3dshared.dylib. Apple publishes no
+ source for them, and none is offered here. How each condition of Apple's license is met:
docs/GPTK-LICENSE.md.
-The license texts of DXMT, DXVK and libfdk-aac ship next to these archives in the
-installer.
+The license texts of DXMT and DXVK ship next to these archives in the installer.
+
+Not shipped in the installer: the WineCX runtime (Libraries.tar.gz from
+https://github.com/dappermint/winecx-gptk, pinned in
+app/Sources/BridgeplayApp/Model/FreeEngineWinecx.swift). Besides Wine it bundles
+third-party libraries, some under the GNU GPL (FFmpeg built with --enable-gpl
+--enable-version3, x264, x265, libdvdcss, libdvdread, libdvdnav), whose
+corresponding source neither dappermint/winecx-gptk nor Bridgeplay publishes. So
+Bridgeplay does not redistribute that archive: the app downloads it straight from
+dappermint/winecx-gptk's GitHub release on the user's Mac. Installers up to
+Bridgeplay 0.7.50 carried it, which is why it was taken out;
+those old installer downloads have been removed from the releases.
Written offer for source code: the Corresponding Source of each binary above is
the upstream source at the commit named above plus the patch or file named next
@@ -116,15 +117,13 @@ to it, all of which are public: winecx at https://github.com/dappermint/winecx,
Wine 11.15 at https://dl.winehq.org/wine/source/11.x/, DXMT at
https://github.com/3Shain/dxmt, DXVK-macOS at https://github.com/Gcenx/DXVK-macOS,
and the patches in this repository (https://github.com/raymondchins/Bridgeplay).
-The WineCX runtime's third-party libraries are built from their upstream
-releases, as packaged by https://github.com/dappermint/winecx-gptk at the
-runtime tag above.
This offer covers every LGPL- or GPL-licensed file Bridgeplay or its installer
-ships, including the unmodified WineCX runtime, its bundled libraries and DXMT
-above. For at least three years
-after the last release that ships them, Raymond Chin will also provide that source
-on request, for no more than the cost of providing it; open an issue at
-https://github.com/raymondchins/Bridgeplay/issues.
+ships: the patched Wine files in the app (above) and DXMT. It also covers the
+WineCX runtime, including its GPL libraries, in the installers up to Bridgeplay
+0.7.50 that carried it. For at least
+three years after the last release that ships them, Raymond Chin will also
+provide that source on request, for no more than the cost of providing it; open
+an issue at https://github.com/raymondchins/Bridgeplay/issues.
NotProton-WineHQ licensing
==========================
@@ -168,7 +167,10 @@ with Bridgeplay.
under their original licenses, see the LICENSE file in each folder. The build
files from Proton are covered by LICENSE.fonts.
-These third party files carry their original notices from the project authors:
+These third party files carry their original notices from the project authors.
+Their license texts ship in the app and the installer as LICENSE.jsoncpp
+(JsonCpp, compiled into steam.exe) and LICENSE.cjson (cJSON, compiled into
+notproton.dylib):
steam-shim/jsoncpp.cpp JsonCpp, public domain / MIT (header)
steam-shim/json/json.h JsonCpp, public domain / MIT (header)
diff --git a/app/Sources/BridgeplayInstaller/InstallerView.swift b/app/Sources/BridgeplayInstaller/InstallerView.swift
index cb9caa7..44e05bc 100644
--- a/app/Sources/BridgeplayInstaller/InstallerView.swift
+++ b/app/Sources/BridgeplayInstaller/InstallerView.swift
@@ -8,7 +8,7 @@ struct InstallerView: View {
switch model.stage {
case .checking: tr("Check your installation")
case .review: model.isCurrent ? tr("Finish setting up Bridgeplay") : model.updating ? tr("Update Bridgeplay") : tr("Install Bridgeplay")
- case .downloading: model.settingUp ? tr("Downloading graphics and engine") : tr("Downloading Bridgeplay")
+ case .downloading: model.settingUp ? tr("Downloading Apple's graphics") : tr("Downloading Bridgeplay")
case .installing: model.settingUp ? tr("Setting up Bridgeplay") : tr("Installing Bridgeplay")
case .done: model.isCurrent ? tr("Bridgeplay is up to date") : tr("Bridgeplay is ready")
case .failed: tr("Installation could not continue")
@@ -67,7 +67,7 @@ struct InstallerView: View {
case .checking: tr("Checking the latest release and the application on this Mac.")
case .review: tr("The application goes in Applications. Your settings, game prefixes and saves are kept.")
case .downloading: model.settingUp
- ? tr("Apple's Game Porting Toolkit and the WineCX engine. The download is checked against Bridgeplay's signature before anything is installed.")
+ ? tr("Apple's Game Porting Toolkit and Bridgeplay's graphics layers, checked against Bridgeplay's signature. Setup adds the WineCX engine later.")
: tr("Only the application is downloaded here. Its signature is checked before installation.")
case .installing: model.settingUp
? tr("Installing Steam, Apple's graphics, the engine and the default settings. Please keep the installer open.")
@@ -142,7 +142,7 @@ struct InstallerView: View {
}
Text(model.components == nil
? tr("Close Bridgeplay before updating. Steam setup and any required permissions are handled by Bridgeplay after installation.")
- : tr("Steam, Apple's graphics and the WineCX engine are installed too, since this Mac doesn't have them yet."))
+ : tr("Steam and Apple's graphics are installed too. Setup adds the WineCX engine later."))
.font(BP.sans(12)).foregroundStyle(BP.fg3).fixedSize(horizontal: false, vertical: true)
case .downloading, .installing:
SetupCard {
diff --git a/app/Sources/BridgeplayInstaller/Resources/Localization/Localizable.xcstrings b/app/Sources/BridgeplayInstaller/Resources/Localization/Localizable.xcstrings
index eaa4326..3b40964 100644
--- a/app/Sources/BridgeplayInstaller/Resources/Localization/Localizable.xcstrings
+++ b/app/Sources/BridgeplayInstaller/Resources/Localization/Localizable.xcstrings
@@ -67,18 +67,18 @@
}
}
},
- "Apple's Game Porting Toolkit and the WineCX engine. The download is checked against Bridgeplay's signature before anything is installed." : {
+ "Apple's Game Porting Toolkit and Bridgeplay's graphics layers, checked against Bridgeplay's signature. Setup adds the WineCX engine later." : {
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Game Porting Toolkit di Apple e il motore WineCX. Il download viene verificato con la firma di Bridgeplay prima di installare qualsiasi cosa."
+ "value" : "Il Game Porting Toolkit di Apple e i livelli grafici di Bridgeplay, verificati con la firma di Bridgeplay. Più avanti Setup aggiunge il motore WineCX."
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Apple 的 Game Porting Toolkit 和 WineCX 引擎。安装前会用 Bridgeplay 的签名校验下载内容。"
+ "value" : "Apple 的 Game Porting Toolkit 和 Bridgeplay 的图形层,已用 Bridgeplay 的签名校验。设置稍后会添加 WineCX 引擎。"
}
}
}
@@ -313,34 +313,34 @@
}
}
},
- "Downloading Bridgeplay" : {
+ "Downloading Apple's graphics" : {
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Download di Bridgeplay"
+ "value" : "Download della grafica di Apple"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
- "value" : "正在下载 Bridgeplay"
+ "value" : "正在下载 Apple 的图形组件"
}
}
}
},
- "Downloading graphics and engine" : {
+ "Downloading Bridgeplay" : {
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Scaricamento di grafica e motore"
+ "value" : "Download di Bridgeplay"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
- "value" : "正在下载图形组件和引擎"
+ "value" : "正在下载 Bridgeplay"
}
}
}
@@ -815,18 +815,18 @@
}
}
},
- "Steam, Apple's graphics and the WineCX engine are installed too, since this Mac doesn't have them yet." : {
+ "Steam and Apple's graphics are installed too. Setup adds the WineCX engine later." : {
"localizations" : {
"it" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Vengono installati anche Steam, la grafica di Apple e il motore WineCX, perché questo Mac non li ha ancora."
+ "value" : "Vengono installati anche Steam e la grafica di Apple. Più avanti Setup aggiunge il motore WineCX."
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
- "value" : "由于这台 Mac 还没有 Steam、Apple 图形组件和 WineCX 引擎,它们也会一并安装。"
+ "value" : "也会安装 Steam 和 Apple 的图形组件。设置稍后会添加 WineCX 引擎。"
}
}
}
diff --git a/app/Sources/BridgeplayInstallerCore/InstallerComponents.swift b/app/Sources/BridgeplayInstallerCore/InstallerComponents.swift
index 2d9558f..25aa750 100644
--- a/app/Sources/BridgeplayInstallerCore/InstallerComponents.swift
+++ b/app/Sources/BridgeplayInstallerCore/InstallerComponents.swift
@@ -1,6 +1,7 @@
import Foundation
-/// Apple's Game Porting Toolkit, the WineCX engine and the default configs: the one-click
+/// Apple's Game Porting Toolkit, DXMT, DXVK and the default configs (not WineCX, which the
+/// app downloads from dappermint): the one-click
/// installer ZIP on the `installer` release, which Install.command inside it puts in place.
/// The wizard downloads it only when this Mac lacks them, checks it against the same EdDSA
/// key as the app, then runs that Install.command without the app step and without Terminal.
diff --git a/docs/GPTK-LICENSE.md b/docs/GPTK-LICENSE.md
index 8509f07..71e26c8 100644
--- a/docs/GPTK-LICENSE.md
+++ b/docs/GPTK-LICENSE.md
@@ -1,13 +1,15 @@
# Apple Game Porting Toolkit: how Bridgeplay meets its license
-The installer ships Apple's Game Porting Toolkit redistributables (`D3DMetal.framework` and
-the `wine/` libraries from the toolkit's `/redist` directory). They are Apple software under
+The installer ships Apple's Game Porting Toolkit redistributables (`external/`, with
+`D3DMetal.framework` and `libd3dshared.dylib`, and `wine/`, from the toolkit's `/redist/lib`
+directory). They are Apple software under
Apple's license, shipped as `GPTK-License.rtf`; they are not in this repository. This page
maps each condition of that license (Game Porting Toolkit 4.0 beta 3) to what Bridgeplay
does. It is a record of the project's reading, not legal advice.
| License term | What it asks | How Bridgeplay meets it |
|---|---|---|
+| 2A(i) | Install, internally use and test the software "for the sole purpose of developing, testing, or evaluating video games for use on Apple-branded products" | Unresolved. Distribution rests on 2A(iii), a separate grant, but the people who install Bridgeplay use the toolkit to play games they own, which is not plainly developing, testing or evaluating them. The project has no settled reading of how 2A(i) applies to that use and records the question here rather than an answer. |
| 2A(iii) | Distribute "solely for non-commercial purposes" | Bridgeplay is free: no price, paid tier, ads, donations or sponsorship, in the app, the site or the repository. README and NOTICE say so. |
| 2A, 2C | Keep Apple's copyright and proprietary notices on each copy | The installer ships Apple's `License.rtf` as `GPTK-License.rtf`, and the framework keeps its own `Resources/LICENSE`. `scripts/package-installer.sh` stops if the license file is missing. |
| 2C | Only the Framework "in its entirety" or parts of the Redistributables may be distributed apart from the toolkit | Only `D3DMetal.framework` (whole) and files from `/redist` are shipped. |
@@ -16,9 +18,12 @@ does. It is a record of the project's reading, not legal advice.
| 2C | No renting, selling, hosting or service bureau use | Users run it on their own Mac; nothing is hosted or resold. |
| 7B | Use only with materials you may legally use | Users play games they own in their own Steam library. |
-Not covered by an automated check: the Windows DLLs under `wine/` are PE files that
-`codesign` cannot verify, so their integrity rests on copying them straight from Apple's
-DMG. Their source is the Wine source Apple publishes for the toolkit (LGPL-2.1-or-later),
-available on request under the offer in [NOTICE](../NOTICE).
+Not covered by an automated check: the Windows DLLs under `wine/x86_64-windows` are PE files
+that `codesign` cannot verify, so their integrity rests on copying them straight from Apple's
+DMG. They are not Wine: they are Apple's proprietary D3DMetal front ends (`d3d10`, `d3d11`,
+`d3d12`, `d3d12core`, `dxgi`, `nvapi64` and `nvngx-on-metalfx.dll`), under Apple's license
+only. Apple publishes no source for them and Bridgeplay offers none. `wine/x86_64-unix` holds
+only symlinks to `external/libd3dshared.dylib`. Bridgeplay's own `SOURCE.txt` note in the
+local GPTK folder is left out of the installer.
When Apple ships a new toolkit version, reread its license and update this table.
diff --git a/docs/NATIVE-INSTALLER.md b/docs/NATIVE-INSTALLER.md
index 48fe536..9bcef43 100644
--- a/docs/NATIVE-INSTALLER.md
+++ b/docs/NATIVE-INSTALLER.md
@@ -1,9 +1,14 @@
# Native installer
-The native installer is an optional small bootstrap for a new installation or an app
-update. It downloads the existing Bridgeplay release, verifies its Sparkle EdDSA signature
-before extraction, and installs the app in `/Applications/Bridgeplay.app`. It does not
-bundle Wine, GPTK, or the product's payload. Discussion: [issue #17](https://github.com/raymondchins/Bridgeplay/issues/17).
+`Bridgeplay Installer.app` (shipped as `Bridgeplay-Setup.zip` on every app release) installs
+or updates `/Applications/Bridgeplay.app`. It downloads the app from the release named in
+Bridgeplay's Sparkle feed and checks its EdDSA signature before extracting it. On a Mac
+without Game Porting Toolkit or Steam it also downloads the one-click installer zip
+(`Bridgeplay-Installer.zip` on the `installer` release, signature in the `.sig` beside it),
+checks it against the same key, and runs its `Install.command` without the app step and
+without Terminal. That zip carries GPTK, DXMT, DXVK and the default configs, not Wine: the app
+downloads the WineCX runtime from dappermint/winecx-gptk during its Setup Assistant (see
+[NOTICE](../NOTICE)). Discussion: [issue #17](https://github.com/raymondchins/Bridgeplay/issues/17).
## Build
@@ -12,20 +17,19 @@ make native-installer
```
This builds the `BridgeplayInstaller` SwiftPM product for arm64, copies its two resource
-bundles and font license files, compiles installer translations, renders the existing
-Bridgeplay mark as the icon, signs the app and packages `out/Bridgeplay-Setup.zip`, a ZIP with only the app in it (a downloaded DMG makes Gatekeeper ask twice).
-The default is an ad hoc local build. `BRIDGEPLAY_SIGN_IDENTITY` selects the maintainer's
-signing identity. The default size budget is 5 MiB; a larger artifact fails packaging.
-`BRIDGEPLAY_INSTALLER_MAX_BYTES` can override the budget for a deliberate size review.
-
-CI also packages the DMG as a build artifact and runs `native-installercheck`.
-The maintainer release script attaches the DMG to each app release after generating the
-product appcast, so it never becomes a Sparkle update for the product. Its dry run builds
-an ad hoc DMG without reading signing identities from the keychain.
-The bootstrap can be built separately from the full app/Wine toolchain. Follow
-[BUILD-LOCAL.md](BUILD-LOCAL.md) for the product build, which still requires Xcode.
-Creating an ad hoc DMG does not provide Developer ID signing or notarization. Test a
-quarantined browser download before claiming a frictionless public installation.
+bundles, compiles installer translations, renders the Bridgeplay mark as the icon, signs the
+app and packages `out/Bridgeplay-Setup.zip`: the app, `READ ME FIRST.html` (Gatekeeper steps,
+with the Geist font inline), `LICENSE`, `NOTICE` and `OFL-Geist.txt`. A ZIP, not a DMG,
+because a downloaded DMG makes Gatekeeper ask twice. The default is an ad hoc local build;
+`BRIDGEPLAY_SIGN_IDENTITY` selects the maintainer's signing identity. Packaging fails above
+5 MiB unless `BRIDGEPLAY_INSTALLER_MAX_BYTES` raises the budget for a deliberate size review.
+
+CI packages the ZIP as a build artifact and runs `native-installercheck`.
+`scripts/release-local.sh` attaches it to each app release after generating the appcast, so
+it never becomes a Sparkle update for the product; its dry run builds an ad hoc copy. The
+bootstrap builds without the Wine toolchain; the product build is in
+[BUILD-LOCAL.md](BUILD-LOCAL.md). An ad hoc build has no Developer ID signature or
+notarization.
## Behavior
@@ -44,17 +48,16 @@ rotated by rename before replacement. Retired copies owned by another account or
read-only directories stay intact as `.Bridgeplay.app.previous-<UUID>` siblings; an
administrator can remove them in Finder. They do not block subsequent updates.
-Prefixes, saves, Steam libraries, support folders and user configuration are not rewritten
-by the bootstrap. Opening the installed app continues its existing Setup Assistant or
-Status/update flow. Engine/graphics downloads and Steam setup remain the app's responsibility;
-the existing Apple toolkit download/import path is preserved. This DMG does not replace the
-existing bundled ZIP installer or alter Sparkle's update feed.
-
-On Finish, users may open Bridgeplay and eject/move the source DMG to Trash. Cleanup is
-available only when the exact source image is identified from `hdiutil` metadata. A copied
-helper outside the mounted volume waits for the installer to exit, rechecks image identity,
-ejects and uses macOS Trash. Cleanup failures preserve the image and show a message. No
-permanent deletion is used for the downloaded DMG.
+Prefixes, saves and Steam libraries are never touched. The components step writes only what
+`Install.command` writes (`gptk/`, `gamefixes-default/`, the cached DXMT/DXVK archives, and
+`default.conf` unless the user edited it; see [installer/README.md](../installer/README.md)).
+Opening the installed app continues its Setup Assistant, which downloads the WineCX engine
+and sets up Steam. Neither installer changes Sparkle's update feed.
+
+On Finish, users may open Bridgeplay. When the installer was started from a mounted disk
+image that `hdiutil` identifies exactly, it also offers to eject the image and move it to
+Trash; a helper outside the volume does that after the installer exits. Failures keep the
+image and show a message. Nothing is deleted permanently.
## Verification
diff --git a/installer/BACA DULU.txt b/installer/BACA DULU.txt
index 1af5029..967f9ca 100644
--- a/installer/BACA DULU.txt
+++ b/installer/BACA DULU.txt
@@ -3,7 +3,8 @@ Cara pasang Bridgeplay
Butuh:
- Mac Apple Silicon (M1 atau lebih baru) dengan macOS 26 atau lebih baru.
- Akun admin Mac (installer menulis ke folder Applications).
-- Internet (untuk Rosetta dan Steam).
+- Internet (installer mengunduh Bridgeplay dan, kalau perlu, Steam; setup
+ mengunduh Rosetta dan engine WineCX, sekitar 440 MB).
1. Klik dua kali "Install.command". macOS akan memblokirnya karena belum
ditandatangani Apple. Klik Done.
@@ -16,13 +17,15 @@ Butuh:
- Your Mac: klik Install di Rosetta kalau diminta (minta password Mac).
- Graphics: sudah otomatis, klik Continue.
- Steam: login ke akun Steam kamu.
- - Set Up: klik Set Up. Kalau diminta izin App Management, nyalakan
- Bridgeplay di jendela Settings yang terbuka. Setup lanjut sendiri.
+ - Set Up: klik Set Up. Setup mengunduh engine WineCX. Kalau diminta izin
+ App Management, nyalakan Bridgeplay di jendela Settings yang terbuka.
+ Setup lanjut sendiri.
5. Klik Open Steam, pilih game Windows, Install, Play.
-Update dari Bridgeplay 2.x: saat pertama dibuka, 3.0.0 memindahkan file-nya dari
-folder lama "notproton" ke "bridgeplay" dan menyimpan backup. Tutup Steam dan
-game dulu; Bridgeplay menunggu sampai keduanya tertutup.
+Update dari NotProton atau Bridgeplay lama yang masih memakai folder
+"notproton": saat pertama dibuka, Bridgeplay memindahkan file-nya dari folder
+itu ke "bridgeplay" dan menyimpan backup. Tutup Steam dan game dulu; Bridgeplay
+menunggu sampai keduanya tertutup.
Controller: pertama kali controller dipakai, Steam minta izin Input
Monitoring. Klik Allow (atau nyalakan Steam di System Settings > Privacy &
@@ -32,3 +35,5 @@ Lisensi: Bridgeplay gratis dan non-komersial, berlisensi GPL-3.0 (lihat
LICENSE dan NOTICE). Installer ini menyertakan redistributable Game Porting
Toolkit milik Apple (folder gptk) di bawah lisensi Apple, yang hanya
mengizinkan distribusi non-komersial. Lisensinya ada di GPTK-License.rtf.
+DXMT dan DXVK (folder cache) memakai lisensinya sendiri, ada di file LICENSE.*
+dan COPYING.LIB.dxmt di sini.
diff --git a/installer/Install.command b/installer/Install.command
index f13bde3..6a84b0e 100755
--- a/installer/Install.command
+++ b/installer/Install.command
@@ -1,10 +1,10 @@
#!/bin/bash
# Bridgeplay one-click installer.
# Downloads the latest Bridgeplay from GitHub, copies Apple's Game Porting Toolkit
-# (D3DMetal), the WineCX engine (no download)
-# and the default configs, installs Steam from Valve's CDN when it is missing, then opens
-# Bridgeplay, whose Setup Assistant does the rest: Rosetta, sign-in, the App Management
-# permission and the Steam setup. Assembled into a zip by scripts/package-installer.sh.
+# (D3DMetal), the DXMT and DXVK archives and the default configs, installs Steam from
+# Valve's CDN when it is missing, then opens Bridgeplay, whose Setup Assistant does the
+# rest: Rosetta, sign-in, the App Management permission, the WineCX engine (downloaded
+# from dappermint/winecx-gptk, see NOTICE) and the Steam setup. Assembled into a zip by scripts/package-installer.sh.
set -uo pipefail
# Bridgeplay Installer.app runs this script too, after it has installed the app itself:
@@ -123,7 +123,7 @@ if [ ! -d /Applications/Steam.app ]; then
xattr -dr com.apple.quarantine /Applications/Steam.app 2>/dev/null || true
fi
-say "Menyalin Game Porting Toolkit, engine WineCX dan config (tanpa download)..."
+say "Menyalin Game Porting Toolkit, DXMT, DXVK dan config..."
if [ "$migrate_later" -eq 1 ]; then
say "Data Bridgeplay lama ditemukan di folder notproton. File baru ditaruh di sana dulu; Bridgeplay memindahkannya ke folder bridgeplay saat pertama dibuka (tutup Steam dan game dulu)."
fi
@@ -131,7 +131,8 @@ mkdir -p "$support/gamefixes" "$support/gamefixes-default" "$support/.installer"
|| die "Folder Bridgeplay di Library tidak bisa dibuat."
rm -rf "$support/gptk" || die "Game Porting Toolkit lama tidak bisa dihapus."
ditto "$here/gptk" "$support/gptk" || die "Game Porting Toolkit gagal disalin."
-# Bridgeplay reuses any cached file whose hash matches its pin, so nothing is downloaded.
+# Bridgeplay reuses any cached file whose hash matches its pin, so DXMT and DXVK are not
+# downloaded again. The WineCX runtime is not in the zip; the app downloads it.
ditto "$here/cache" "$caches" || die "File engine gagal disalin."
# Per-game confs are Bridgeplay's shipped defaults (gamefixes/ in the repository). They go
diff --git a/installer/README.md b/installer/README.md
index 9abf3af..33c8ce0 100644
--- a/installer/README.md
+++ b/installer/README.md
@@ -1,32 +1,34 @@
# Installer
-`Install.command` installs the app, Apple's Game Porting Toolkit, the WineCX engine and the
-default configs from the folder it sits in, downloads Steam from Valve's CDN when
-`/Applications/Steam.app` is missing, then opens the app's Setup Assistant.
+`Install.command` downloads the latest `Bridgeplay.zip` from the GitHub releases (checking its
+signature), installs Apple's Game Porting Toolkit, the DXMT and DXVK archives and the default
+configs from the folder it sits in, downloads Steam from Valve's CDN when
+`/Applications/Steam.app` is missing, then opens the app's Setup Assistant. The Setup
+Assistant downloads the WineCX engine (dappermint/winecx-gptk's runtime) itself: the zip does
+not carry it, because it bundles GPL libraries whose source neither project publishes (see
+`NOTICE`). `Bridgeplay Installer.app` runs the same script without the app step
+([docs/NATIVE-INSTALLER.md](../docs/NATIVE-INSTALLER.md)).
Before copying Steam, `Install.command` verifies its strict code signature against Apple's
trust chain, Valve's Team ID, and the `com.valvesoftware.steam` bundle identifier.
Build the zip with:
- make app
scripts/package-installer.sh # writes out/Bridgeplay-Installer.zip
-The script stages `out/installer/Bridgeplay/` and fails if a piece is missing or an engine
-archive does not match its pin in `FreeEngine*.swift`:
+The script stages `out/installer/Bridgeplay/` and fails if a piece is missing, an archive does
+not match its pin in `FreeEngine.swift`, or anything from Valve or the WineCX runtime ended up
+in the stage:
| Path in the zip | Source |
|---|---|
-| `Bridgeplay.app` | `out/Bridgeplay.app` from `make app` |
| `Install.command`, `BACA DULU.txt`, `README.txt`, `config/` | this folder |
| `config/gamefixes-default/` | `gamefixes/*.conf` at the repository root, the same files the app ships |
-| `LICENSE`, `LICENSE.*`, `NOTICE` | repository root |
+| `LICENSE`, `LICENSE.*`, `NOTICE` | repository root (includes `LICENSE.jsoncpp`, `LICENSE.cjson`, `LICENSE.wine`) |
| `LICENSE.dxmt`, `LICENSE.dxmt-old`, `COPYING.LIB.dxmt`, `LICENSE.dxvk` | `licenses/`: DXMT at 3Shain/dxmt `e94c312f5c054263acf261cfa109edf13e757587`, DXVK-macOS at Gcenx/DXVK-macOS `8f1e28deed3ad30802f7e1bdff428ec14e6e7817` (tag `v1.10.3-20230507-repack`) |
-| `gptk/` | `~/Library/Application Support/bridgeplay/gptk` (`redist/lib` of Apple's Game Porting Toolkit DMG) |
+| `gptk/` | `~/Library/Application Support/bridgeplay/gptk` (`redist/lib` of Apple's Game Porting Toolkit DMG), without Bridgeplay's own `SOURCE.txt` note |
| `GPTK-License.rtf` | `gptk/License.rtf` from the same DMG |
-| `LICENSE.fdk-aac` | `licenses/`: `NOTICE` of mstorsjo/fdk-aac, for the runtime's `libfdk-aac` |
-| `WINECX-RUNTIME-LIBRARIES.txt` | generated by `package-installer.sh`: every library in the WineCX runtime archive |
-| `cache/engines/` | the pinned WineCX runtime, DXMT and DXVK archives from `~/Library/Caches/bridgeplay/engines` |
+| `cache/engines/` | the pinned DXMT and DXVK archives from `~/Library/Caches/bridgeplay/engines` |
On a Mac the app has not migrated to 3.0.0 yet, the script falls back to the old
`notproton` folders. `Install.command` installs into the `bridgeplay` folders. When only the
@@ -43,7 +45,8 @@ since the last install (`.installer/default.conf` records that copy); an edited
and the new file lands next to it as `default.conf.new`.
Never shipped: Valve's Steam client and the Steam packages in `valve-packages/` (the app
-downloads those from Valve's CDN), and GPTK is never committed. GPTK's `/redist` files are
+downloads those from Valve's CDN) and the WineCX runtime (the app downloads it from
+dappermint/winecx-gptk). GPTK is never committed. GPTK's `/redist` files are
Apple software that Apple allows to be redistributed for non-commercial use only; Bridgeplay
is free and non-commercial.
diff --git a/installer/README.txt b/installer/README.txt
index 9a97b0e..2af7fbf 100644
--- a/installer/README.txt
+++ b/installer/README.txt
@@ -3,7 +3,8 @@ Installing Bridgeplay
You need:
- An Apple Silicon Mac (M1 or later) with macOS 26 or later.
- An administrator account (the installer writes to Applications).
-- Internet (for Rosetta and Steam).
+- Internet (the installer downloads Bridgeplay and, if needed, Steam; setup
+ downloads Rosetta and the WineCX engine, about 440 MB).
1. Double-click "Install.command". macOS blocks it because Apple has not
notarized it. Click Done.
@@ -16,19 +17,23 @@ You need:
- Your Mac: click Install for Rosetta if asked (needs your Mac password).
- Graphics: already done, click Continue.
- Steam: sign in to your Steam account.
- - Set Up: click Set Up. If asked for App Management, turn on Bridgeplay in
- the Settings window that opens. Setup then continues by itself.
+ - Set Up: click Set Up. It downloads the WineCX engine. If asked for App
+ Management, turn on Bridgeplay in the Settings window that opens. Setup
+ then continues by itself.
5. Click Open Steam, pick a Windows game, Install, Play.
-Updating from Bridgeplay 2.x: the first time 3.0.0 opens, it moves its files
-from the old "notproton" folders to "bridgeplay" and keeps a backup. Quit Steam
-and any game first; it waits until they are closed.
+Updating from NotProton or an early Bridgeplay that still used "notproton"
+folders: the first time Bridgeplay opens, it moves the files from those
+folders to "bridgeplay" and keeps a backup. Quit Steam and any game first; it
+waits until they are closed.
Controllers: the first time you use a controller, Steam asks for Input
Monitoring. Click Allow (or turn on Steam in System Settings > Privacy &
Security > Input Monitoring).
-Licensing: Bridgeplay is licensed under GPL-3.0 (see LICENSE and NOTICE). The installer includes Apple's Game Porting Toolkit
-redistributables under Apple's license, which allows non-commercial
-distribution only. Bridgeplay is free and non-commercial. Apple's license is
-in GPTK-License.rtf.
+Licensing: Bridgeplay is licensed under GPL-3.0 (see LICENSE and NOTICE).
+The installer includes Apple's Game Porting Toolkit redistributables (the gptk
+folder) under Apple's license, which allows non-commercial distribution only.
+Bridgeplay is free and non-commercial. Apple's license is in GPTK-License.rtf.
+DXMT and DXVK (in the cache folder) keep their own licenses, in the LICENSE.*
+and COPYING.LIB.dxmt files here.
diff --git a/installer/licenses/LICENSE.fdk-aac b/installer/licenses/LICENSE.fdk-aac
deleted file mode 100644
index 05b32bd..0000000
--- a/installer/licenses/LICENSE.fdk-aac
+++ /dev/null
@@ -1,92 +0,0 @@
-Software License for The Fraunhofer FDK AAC Codec Library for Android
-
-© Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten
-Forschung e.V. All rights reserved.
-
- 1. INTRODUCTION
-The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software
-that implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding
-scheme for digital audio. This FDK AAC Codec software is intended to be used on
-a wide variety of Android devices.
-
-AAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient
-general perceptual audio codecs. AAC-ELD is considered the best-performing
-full-bandwidth communications codec by independent studies and is widely
-deployed. AAC has been standardized by ISO and IEC as part of the MPEG
-specifications.
-
-Patent licenses for necessary patent claims for the FDK AAC Codec (including
-those of Fraunhofer) may be obtained through Via Licensing
-(www.vialicensing.com) or through the respective patent owners individually for
-the purpose of encoding or decoding bit streams in products that are compliant
-with the ISO/IEC MPEG audio standards. Please note that most manufacturers of
-Android devices already license these patent claims through Via Licensing or
-directly from the patent owners, and therefore FDK AAC Codec software may
-already be covered under those patent licenses when it is used for those
-licensed purposes only.
-
-Commercially-licensed AAC software libraries, including floating-point versions
-with enhanced sound quality, are also available from Fraunhofer. Users are
-encouraged to check the Fraunhofer website for additional applications
-information and documentation.
-
-2. COPYRIGHT LICENSE
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted without payment of copyright license fees provided that you
-satisfy the following conditions:
-
-You must retain the complete text of this software license in redistributions of
-the FDK AAC Codec or your modifications thereto in source code form.
-
-You must retain the complete text of this software license in the documentation
-and/or other materials provided with redistributions of the FDK AAC Codec or
-your modifications thereto in binary form. You must make available free of
-charge copies of the complete source code of the FDK AAC Codec and your
-modifications thereto to recipients of copies in binary form.
-
-The name of Fraunhofer may not be used to endorse or promote products derived
-from this library without prior written permission.
-
-You may not charge copyright license fees for anyone to use, copy or distribute
-the FDK AAC Codec software or your modifications thereto.
-
-Your modified versions of the FDK AAC Codec must carry prominent notices stating
-that you changed the software and the date of any change. For modified versions
-of the FDK AAC Codec, the term "Fraunhofer FDK AAC Codec Library for Android"
-must be replaced by the term "Third-Party Modified Version of the Fraunhofer FDK
-AAC Codec Library for Android."
-
-3. NO PATENT LICENSE
-
-NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without
-limitation the patents of Fraunhofer, ARE GRANTED BY THIS SOFTWARE LICENSE.
-Fraunhofer provides no warranty of patent non-infringement with respect to this
-software.
-
-You may use this FDK AAC Codec software or modifications thereto only for
-purposes that are authorized by appropriate patent licenses.
-
-4. DISCLAIMER
-
-This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright
-holders and contributors "AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES,
-including but not limited to the implied warranties of merchantability and
-fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
-CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary,
-or consequential damages, including but not limited to procurement of substitute
-goods or services; loss of use, data, or profits, or business interruption,
-however caused and on any theory of liability, whether in contract, strict
-liability, or tort (including negligence), arising in any way out of the use of
-this software, even if advised of the possibility of such damage.
-
-5. CONTACT INFORMATION
-
-Fraunhofer Institute for Integrated Circuits IIS
-Attention: Audio and Multimedia Departments - FDK AAC LL
-Am Wolfsmantel 33
-91058 Erlangen, Germany
-
-www.iis.fraunhofer.de/amm
-
diff --git a/scripts/package-installer.sh b/scripts/package-installer.sh
index 5cdbc52..b115d03 100755
--- a/scripts/package-installer.sh
+++ b/scripts/package-installer.sh
@@ -4,15 +4,17 @@
# scripts/package-installer.sh [--fingerprint-only]
#
# The installer carries no app: Install.command downloads the latest Bridgeplay.zip from
-# the GitHub releases, so the zip only changes with the engines, GPTK, the configs or the
-# installer itself, and release-local.sh uploads it only then. --fingerprint-only runs
+# the GitHub releases, so the zip only changes with the DXMT/DXVK archives, GPTK, the
+# configs or the installer itself, and release-local.sh uploads it only then. --fingerprint-only runs
# every check and prints that fingerprint without writing the zip.
#
-# Takes the engine archives from this Mac's engine cache,
-# Apple's Game Porting Toolkit from this Mac's support folder, and installer/ plus the
-# licence files from the repository. Engine archives are checked against the pins in
-# FreeEngine*.swift. Nothing else from the cache is shipped: Valve's packages and Steam
-# itself are downloaded on the user's Mac from Valve. GPTK is never committed.
+# Takes the DXMT and DXVK archives from this Mac's engine cache, Apple's Game Porting
+# Toolkit from this Mac's support folder, and installer/ plus the licence files from the
+# repository. The archives are checked against the pins in FreeEngine.swift. Nothing else
+# from the cache is shipped. The WineCX runtime (dappermint/winecx-gptk's Libraries.tar.gz)
+# is not: it bundles GPL libraries (FFmpeg, x264, x265, libdvd*) whose source neither
+# project publishes, so the app downloads it from dappermint on the user's Mac. Valve's
+# packages and Steam itself are downloaded from Valve. GPTK is never committed.
#
# Overridable: ENGINE_CACHE (default
# ~/Library/Caches/bridgeplay), GPTK_DIR (default ~/Library/Application Support/bridgeplay/gptk).
@@ -66,23 +68,14 @@ need_file() {
# --- engine archives, from the pins -----------------------------------------------
-winecx_swift=$models/FreeEngineWinecx.swift
engine_swift=$models/FreeEngine.swift
-current=$(sed -n 's/^ *static let current = \(v[0-9]*\)$/\1/p' "$winecx_swift")
-[ -n "$current" ] || die "cannot find FreeEngineWinecx.current in $winecx_swift"
-runtime=$(pin_after "$winecx_swift" "static let $current = WinecxRelease(" runtime)
-winecx_archive=$(pin_after "$winecx_swift" "static let $current = WinecxRelease(" archive)
-winecx_sha=$(pin_after "$winecx_swift" "static let $current = WinecxRelease(" sha256)
dxmt_archive=$(pin_after "$engine_swift" "static let dxmt = RendererRelease(" archive)
dxmt_sha=$(pin_after "$engine_swift" "static let dxmt = RendererRelease(" sha256)
dxvk_archive=$(pin_after "$engine_swift" "dxvk: BackendRelease(" archive)
dxvk_sha=$(pin_after "$engine_swift" "dxvk: BackendRelease(" sha256)
-[ -n "$runtime" ] && [ -n "$winecx_archive" ] && [ -n "$dxmt_archive" ] && [ -n "$dxvk_archive" ] \
- || die "cannot read the engine pins from $models"
+[ -n "$dxmt_archive" ] && [ -n "$dxvk_archive" ] || die "cannot read the engine pins from $engine_swift"
-winecx_rel=engines/winecx-$runtime/$winecx_archive
echo "==> checking engine archives in $ENGINE_CACHE against the pins"
-need_file "$ENGINE_CACHE/$winecx_rel" "$winecx_sha"
need_file "$ENGINE_CACHE/engines/$dxmt_archive" "$dxmt_sha"
need_file "$ENGINE_CACHE/engines/$dxvk_archive" "$dxvk_sha"
@@ -125,7 +118,7 @@ ls gamefixes/*.conf >/dev/null 2>&1 || die "no gamefixes/*.conf in the repositor
echo "==> staging $stage"
rm -rf "$stage_root" "$zip"
-mkdir -p "$stage/cache/engines/winecx-$runtime"
+mkdir -p "$stage/cache/engines"
cp installer/Install.command "installer/BACA DULU.txt" installer/README.txt "$stage/"
chmod 755 "$stage/Install.command"
@@ -137,22 +130,14 @@ cp "$GPTK_DIR/License.rtf" "$stage/GPTK-License.rtf"
rsync -a --exclude .DS_Store installer/config/ "$stage/config/"
mkdir -p "$stage/config/gamefixes-default"
cp gamefixes/*.conf "$stage/config/gamefixes-default/"
-rsync -a --exclude .DS_Store "$GPTK_DIR/" "$stage/gptk/"
-cp "$ENGINE_CACHE/$winecx_rel" "$stage/cache/$winecx_rel"
-# The runtime bundles third-party libraries without their licence files, so the installer
-# names every one of them; NOTICE says which licences they fall under.
-# CEILING: lists files, not each library's own copyright notice — generate those from the
-# Homebrew formulae the runtime was built from, or get winecx-gptk to ship them upstream.
-{
- echo "Libraries bundled in the WineCX runtime ($winecx_rel)."
- echo "Licences and the written offer for source code: see NOTICE."
- echo
- tar -tzf "$stage/cache/$winecx_rel" | grep -E '\.(dylib|so)$' | sed 's#.*/##' | sort -u
-} >"$stage/WINECX-RUNTIME-LIBRARIES.txt" || die "could not list the WineCX runtime's libraries"
+# SOURCE.txt is Bridgeplay's own note of where this Mac's copy came from, not Apple's.
+rsync -a --exclude .DS_Store --exclude SOURCE.txt "$GPTK_DIR/" "$stage/gptk/"
cp "$ENGINE_CACHE/engines/$dxmt_archive" "$ENGINE_CACHE/engines/$dxvk_archive" "$stage/cache/engines/"
# Valve's software is downloaded from Valve on the user's Mac, never shipped.
+# Nor is the WineCX runtime, which the app downloads from dappermint (see the top).
unwanted=$(find "$stage" \( -name valve-packages -o -name 'steam.dmg' -o -name 'Steam.app' \
+ -o -name 'winecx-*' -o -name 'Libraries.tar.gz' \
-o -name '*.p12' -o -name '*.pem' -o -name '*.key' -o -name '.env*' \) -print)
[ -z "$unwanted" ] || die "refusing to ship: $unwanted"
diff --git a/scripts/package-native-installer.sh b/scripts/package-native-installer.sh
index d7f1fc5..badc17d 100755
--- a/scripts/package-native-installer.sh
+++ b/scripts/package-native-installer.sh
@@ -1,6 +1,7 @@
#!/bin/sh
# Build the small native bootstrap without Wine, GPTK or the product payload, as a ZIP with
-# the app and READ ME FIRST.html, which shows how to get past Gatekeeper. A downloaded DMG is
+# the app, READ ME FIRST.html (how to get past Gatekeeper) and the licence files: LICENSE,
+# NOTICE and OFL-Geist.txt for the Geist font the page embeds. A downloaded DMG is
# checked by Gatekeeper on its own, then the app in it again: two Open Anyway prompts. A ZIP
# is not, so the app is the only one.
set -eu
@@ -90,6 +91,7 @@ def font(match):
return "data:font/woff2;base64," + base64.b64encode((fonts / (match.group(1) + ".woff2")).read_bytes()).decode()
out.write_text(re.sub(r"\{\{font:(\w+)\}\}", font, page.read_text()))
PYTHON
+cp LICENSE NOTICE app/Sources/BridgeplayUI/Resources/Fonts/OFL-Geist.txt "$package/"
rm -f "$zip"
(cd "$package" && ditto -c -k --norsrc --noextattr . "$zip")
size=$(stat -f '%z' "$zip")