added app2ipa script and I forget what the other changes were

This commit is contained in:
stopflock
2025-07-19 12:05:14 -05:00
parent 32d57ba3cd
commit d3d1e4a7b2
3 changed files with 29 additions and 2 deletions

27
app2ipa.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
# Check if an argument is provided
if [ -z "$1" ]; then
echo "Usage: $0 <path_to_your_app.app>"
exit 1
fi
APP_PATH="$1"
APP_NAME=$(basename "$APP_PATH" .app) # Extract app name without .app extension
# 1. Create a Payload directory
PAYLOAD_DIR="Payload"
mkdir -p "$PAYLOAD_DIR"
# 2. Move the .app bundle inside the Payload directory
cp -r "$APP_PATH" "$PAYLOAD_DIR/"
# 3. Create the .ipa by zipping the Payload directory and renaming
zip -r "$APP_NAME.zip" "$PAYLOAD_DIR"
mv "$APP_NAME.zip" "$APP_NAME.ipa"
# 4. Clean up the temporary Payload directory
rm -rf "$PAYLOAD_DIR"
echo "Successfully converted $APP_PATH to $APP_NAME.ipa"

View File

@@ -31,7 +31,7 @@ class OverpassService {
(${bbox.southWest.latitude},${bbox.southWest.longitude}, (${bbox.southWest.latitude},${bbox.southWest.longitude},
${bbox.northEast.latitude},${bbox.northEast.longitude}); ${bbox.northEast.latitude},${bbox.northEast.longitude});
); );
out body 100; out body 250;
'''; ''';
try { try {

View File

@@ -198,7 +198,7 @@ class _MapViewState extends State<MapView> {
Polygon _buildCone(LatLng origin, double bearingDeg, double zoom) { Polygon _buildCone(LatLng origin, double bearingDeg, double zoom) {
const halfAngle = 15.0; const halfAngle = 15.0;
final length = 0.002 * math.pow(2, 15 - zoom); final length = 0.0012 * math.pow(2, 15 - zoom);
LatLng _project(double deg) { LatLng _project(double deg) {
final rad = deg * math.pi / 180; final rad = deg * math.pi / 180;