mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-02-12 16:52:51 +00:00
added app2ipa script and I forget what the other changes were
This commit is contained in:
27
app2ipa.sh
Executable file
27
app2ipa.sh
Executable 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"
|
||||||
|
|
||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user