some
This commit is contained in:
1 parent
3adf0bd86e
commit
c505db24d6
1 file changed
+16
-1
@@ -246,6 +246,19 @@ established format, e.g. `echo -e "\n> > > > Step №$STEP. Build '$TARGET' for
|
||||
A sourced step's cd persists; use SDIR-based paths for later steps. Some existing
|
||||
steps leave paths unquoted, so spaces in checkout paths are not uniformly handled.
|
||||
|
||||
When an analogue's step script is byte-for-byte identical to the corresponding
|
||||
`hello-platform/util/step` script, use a relative symlink instead of a copy.
|
||||
Compare contents first and verify the link resolves. In `hello-raylib`,
|
||||
`generateDialect`, `packageMac` and `runMac` link to
|
||||
`../../../hello-platform/util/step/<name>`. These sourced scripts use the calling
|
||||
entry script's SDIR, so they operate on the analogue. Keep `buildMac` separate:
|
||||
it additionally exports `RAYLIB_PREFIX` before invoking `swift build`.
|
||||
|
||||
For raylib analogues, name the C bridge translation unit `raybri.c`, not
|
||||
`Raylib.c`. `hello-raylib/ver-mac/src/raybri.c` enables the raybri header
|
||||
implementations; keep Package.swift's C target sources and Swift target excludes
|
||||
consistent with that filename.
|
||||
|
||||
- **macOS:** tools 5.9, executable source root `src`, deployment macOS 13. Bundle
|
||||
plist currently says minimum 11.0, inconsistent with Package.swift; use 13 as
|
||||
the package's actual target floor and reconcile values for a new app.
|
||||
@@ -338,7 +351,9 @@ the app ID. Update all relevant identities together for a new analogue.
|
||||
Copy the Gradle wrapper intentionally; do not copy local.properties, .build,
|
||||
build outputs, IDE state, .git or machine-specific caches.
|
||||
8. Add util entry scripts and step files, preserve SDIR/TARGET/STEP conventions,
|
||||
banners and build/generate/package boundaries. The fixed ../../../ repository
|
||||
banners and build/generate/package boundaries. Symlink identical step scripts
|
||||
to hello-platform as described above; retain app-specific scripts separately.
|
||||
The fixed ../../../ repository
|
||||
traversal in this sample assumes `hello/<app>/util`; recompute for other depths.
|
||||
9. Wire shared icons through platform assets. An embedded Windows group ID and
|
||||
runtime helper argument must agree. Do not add resource compilation to builds
|
||||
|
||||
Reference in new issue
Block a user