Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Allow for updating to developmental versions + Optimize assets #458

Merged
merged 10 commits into from
Jun 26, 2024

Conversation

SenpaiHunters
Copy link
Collaborator

This update addressed my feat in issue #441 and also will address #182.

This update also introduces a script that is on building/running the app each time, which will format everything using SwiftFormat and its file.

If another users wishes to use it, here it is

# Default Homebrew installation path on Intel-based Macs
HOMEBREW_INTEL_PATH="/usr/local/bin/swiftformat"

# Default Homebrew installation path on Apple Silicon Macs
HOMEBREW_ARM_PATH="/opt/homebrew/bin/swiftformat"

# Determine the architecture of the machine (arm64 or x86_64)
ARCH=$(uname -m)

# Set the Homebrew path based on the architecture
if [ "$ARCH" = "arm64" ]; then
    SWIFTFORMAT_PATH="$HOMEBREW_ARM_PATH"
else
    SWIFTFORMAT_PATH="$HOMEBREW_INTEL_PATH"
fi

# Check if SwiftFormat is installed via Homebrew
if [ -x "$SWIFTFORMAT_PATH" ]; then
    "$SWIFTFORMAT_PATH" .
else
    echo "warning: SwiftFormat not installed via Homebrew or not found in expected paths"
fi

It also adds a few more update sayings, which will require localisation, sorry to those people..

This was linked to issues Jun 24, 2024
@MrKai77 MrKai77 changed the title ✨ Allow for developmental versions ✨ Allow for updating to developmental versions Jun 26, 2024
@MrKai77 MrKai77 changed the title ✨ Allow for updating to developmental versions ✨ Allow for updating to developmental versions + Optimize assets Jun 26, 2024
@MrKai77 MrKai77 merged commit fb9d911 into MrKai77:develop Jun 26, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

✨ Allow for dev version ✨ Nightlies/commit builds
2 participants