fix: decouple release from generated test host podfile
This commit is contained in:
@@ -47,22 +47,6 @@ def update_changelog(target: str, revision: int) -> None:
|
||||
path.write_text(text.replace(marker, entry, 1))
|
||||
|
||||
|
||||
def update_testhost_spm(ios_version: str) -> None:
|
||||
path = ROOT / "integration/react-native/MapLibreParticleRNTestHost/ios/Podfile"
|
||||
text = path.read_text()
|
||||
text = re.sub(
|
||||
r'url: "[^"]+"',
|
||||
'url: "https://pbf.jpcn.ccwu.cc/swift/maplibre-particle-spm.git"',
|
||||
text,
|
||||
count=1,
|
||||
)
|
||||
text = re.sub(
|
||||
r'version: "[^"]+"',
|
||||
f'version: "{ios_version}"',
|
||||
text,
|
||||
count=1,
|
||||
)
|
||||
path.write_text(text)
|
||||
|
||||
def main() -> None:
|
||||
if len(sys.argv) != 2 or not sys.argv[1].isdigit():
|
||||
@@ -105,7 +89,6 @@ def main() -> None:
|
||||
readme.write_text(readme_text)
|
||||
|
||||
update_changelog(android_version, revision)
|
||||
update_testhost_spm(ios_version)
|
||||
|
||||
print(f"PARTICLE_REVISION={revision}")
|
||||
print(f"ANDROID_RN_VERSION={android_version}")
|
||||
|
||||
@@ -73,8 +73,7 @@ prepare_release() {
|
||||
packages/maplibre-particle-rn/app.plugin.js \
|
||||
packages/maplibre-particle-rn/README.md \
|
||||
packages/maplibre-particle-rn/CHANGELOG.md \
|
||||
integration/react-native/MapLibreParticleRNTestHost/plugins/withParticleNativeAndroid.js \
|
||||
integration/react-native/MapLibreParticleRNTestHost/ios/Podfile
|
||||
integration/react-native/MapLibreParticleRNTestHost/plugins/withParticleNativeAndroid.js
|
||||
if ! git -C "$ROOT" diff --cached --quiet; then
|
||||
git -C "$ROOT" commit -m "release: prepare unified particle.$REV"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user