Skip to content

Commit

Permalink
✨ Development builds are now always debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKai77 committed Aug 10, 2023
1 parent c76ebcf commit 6bce503
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-loop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

- name: Build Loop.app
run: |
sh ./resources/build_loop.sh
sh ./resources/build_loop.sh debug
- name: Zip Loop.app
run: |
Expand All @@ -49,7 +49,7 @@ jobs:
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "prerelease"
automatic_release_tag: "development_build"
prerelease: true
title: "Prerelease"
title: "Development Build"
files: Loop.zip
2 changes: 1 addition & 1 deletion Loop.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@
);
MACOSX_DEPLOYMENT_TARGET = 13.0;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.MrKai77.Loop.Debug;
PRODUCT_BUNDLE_IDENTIFIER = com.MrKai77.Loop;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OBJC_BRIDGING_HEADER = "";
Expand Down
2 changes: 1 addition & 1 deletion Loop/LoopApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct LoopApp: App {

MenuBarExtra("Loop", image: "menubarIcon") {
#if DEBUG
Text("\(Bundle.main.appVersion) DEBUG (\(Bundle.main.appBuild))")
Text("DEV BUILD: \(Bundle.main.appVersion) (\(Bundle.main.appBuild))")
#endif

if #available(macOS 14, *) {
Expand Down
13 changes: 10 additions & 3 deletions resources/build_loop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,21 @@ rm -rf ./Loop.app

echo "Building Loop..."
xcodebuild clean archive -project ./Loop.xcodeproj -scheme Loop -archivePath ./Archive
xcodebuild -exportArchive -archivePath Archive.xcarchive -exportPath Release -exportOptionsPlist "resources/sparkle/export_options.plist"

if [$1 -eq "debug"]; then
echo "Debug Build!"
xcodebuild -exportArchive -archivePath Archive.xcarchive -configuration Debug -exportPath Build -exportOptionsPlist "resources/sparkle/export_options.plist"
else
echo "Release Build!"
xcodebuild -exportArchive -archivePath Archive.xcarchive -configuration Release -exportPath Build -exportOptionsPlist "resources/sparkle/export_options.plist"
fi

echo "Moving Loop into current directory"
mv Release/*.app .
mv Build/*.app .

echo "Cleaning up..."
rm -rf Archive.xcarchive
rm -rf Release
rm -rf Build

open .
echo "Done!"

0 comments on commit 6bce503

Please sign in to comment.