INNER CODE UNIT · Python

main

OpenListTeam/OpenList-Mobile · ios/scripts/generate_ios_icons.py:56

def main():
    # Paths
    script_dir = os.path.dirname(os.path.abspath(__file__))
    ios_dir = os.path.dirname(script_dir)
    flutter_project_root = os.path.dirname(ios_dir)
    workspace_root = os.path.dirname(flutter_project_root)
    logo_dir = os.path.join(workspace_root, "Logo", "logo")
    output_dir = os.path.join(ios_dir, "Runner", "Assets.xcassets", "AppIcon.appiconset")
    
    # Verify directories
    if not os.path.exists(logo_dir):
        print(f"Error: Logo directory not found: {logo_dir}")
        sys.exit(1)
    
    if not os.path.exists(output_dir):
        print(f"Error: Output directory not found: {output_dir}")
        sys.exit(1)
    

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…