This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
75 lines (57 loc) · 3.72 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
test:
xcodebuild -project "Pareto Updater.xcodeproj" -clonedSourcePackagesDirPath SourcePackages -scheme "Pareto Updater" -configuration Debug -resultBundlePath test.xcresult -destination platform=macOS test
build:
xcodebuild -project "Pareto Updater.xcodeproj" -clonedSourcePackagesDirPath SourcePackages -scheme "Pareto Updater" -configuration Debug -destination platform=macOS build
libSetapp:
wget "https://developer-api.setapp.com/v1/applications/496/kevlar?token=${SETAPP_TOKEN}&type=libsetapp_silicon" -O libsetapp.zip
unzip libsetapp.zip
rm libsetapp.zip
archive-debug:
xcodebuild -project "Pareto Updater.xcodeproj" -clonedSourcePackagesDirPath SourcePackages -scheme "Pareto Updater" -destination platform=macOS archive -archivePath app.xcarchive -configuration Debug -allowProvisioningUpdates
xcodebuild -exportArchive -archivePath app.xcarchive -exportPath Export -exportOptionsPlist exportOptionsDev.plist
archive-debug-setapp: libSetapp
xcodebuild -project "Pareto Updater.xcodeproj" -clonedSourcePackagesDirPath SourcePackages -scheme "Pareto Updater SetApp" -destination platform=macOS archive -archivePath setapp.xcarchive -configuration Debug -allowProvisioningUpdates
xcodebuild -exportArchive -archivePath setapp.xcarchive -exportPath SetAppExport -exportOptionsPlist exportOptionsDev.plist
mv SetAppExport/Pareto\ Updater\ SetApp.app SetAppExport/Pareto\ Updater.app
archive-release:
xcodebuild -project "Pareto Updater.xcodeproj" -clonedSourcePackagesDirPath SourcePackages -scheme "Pareto Updater" -destination platform=macOS archive -archivePath app.xcarchive -configuration Release -allowProvisioningUpdates
xcodebuild -exportArchive -archivePath app.xcarchive -exportPath Export -exportOptionsPlist exportOptions.plist
archive-release-setapp: libSetapp
rm -rf SetAppExport
xcodebuild -project "Pareto Updater.xcodeproj" -clonedSourcePackagesDirPath SourcePackages -scheme "Pareto Updater SetApp" -destination platform=macOS archive -archivePath setapp.xcarchive -configuration Release -allowProvisioningUpdates
xcodebuild -exportArchive -archivePath setapp.xcarchive -exportPath SetAppExport -exportOptionsPlist exportOptions.plist
mv SetAppExport/Pareto\ Updater\ SetApp.app SetAppExport/Pareto\ Updater.app
build-release-setapp:
# rm -f ParetoUpdaterSetApp.app.zip
# rm -rf SetAppExport/Release
# mkdir -p SetAppExport/Release
# cp assets/[email protected] SetAppExport/Release/AppIcon.png
# cp -vr SetAppExport/Pareto\ Updater.app SetAppExport/Release/Pareto\ Updater.app
# cd SetAppExport; ditto -c -k --sequesterRsrc --keepParent Release ../ParetoUpdaterSetApp.app.zip
cp -f assets/[email protected] AppIcon.png
zip -u ParetoUpdaterSetApp.app.zip AppIcon.png
rm -f AppIcon.png
dmg:
create-dmg --overwrite Export/Pareto\ Updater.app Export && mv Export/*.dmg ParetoUpdater.dmg
pkg:
productbuild --scripts ".github/pkg" --component Export/Pareto\ Updater.app / ParetoUpdaterPlain.pkg
productsign --sign "Developer ID Installer: Niteo GmbH" ParetoUpdaterPlain.pkg ParetoUpdater.pkg
lint:
mint run swiftlint .
fmt:
mint run swiftformat --swiftversion 5 .
mint run swiftlint . --fix
notarize-dmg:
xcrun notarytool submit ParetoUpdater.dmg --team-id PM784W7B8X --progress --wait ${APPLE_AUTH_TOKEN}
notarize-zip:
xcrun notarytool submit ParetoUpdater.zip --team-id PM784W7B8X --progress --wait ${APPLE_AUTH_TOKEN}
clean:
rm -rf SourcePackages
rm -rf Export
rm -rf SetAppExport
zip:
ditto -V -c -k --keepParent Export/Pareto\ Updater.app ParetoUpdater.zip
sentry-debug-upload:
sentry-cli --auth-token ${SENTRY_AUTH_TOKEN} upload-dif app.xcarchive --org teamniteo --project pareto-updater
sentry-debug-upload-setapp:
sentry-cli --auth-token ${SENTRY_AUTH_TOKEN} upload-dif setapp.xcarchive --org teamniteo --project pareto-updater