-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
37 lines (34 loc) · 1.28 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
all: help
build:
rm -rf .build
mv ./Package.swift ./Package.swift_
mv ./Package.local.swift ./Package.swift
swiftlint
swift build --configuration release --arch arm64 --arch x86_64
mv ./Package.swift ./Package.local.swift
mv ./Package.swift_ ./Package.swift
cp .build/apple/Products/Release/natrium Natrium/
chmod +x Natrium/natrium
mkdir -p Example/Cocoapods/Pods/Natrium/Natrium/Sources
chmod -R 7777 Example/CocoaPods/Pods/Natrium/
cp -f Natrium/Sources/*.* Example/CocoaPods/Pods/Natrium/Natrium/Sources/
cp -f Natrium/natrium Example/CocoaPods/Pods/Natrium/Natrium/
rm -rf Example/CocoaPods/Pods/Natrium/Natrium.lock
cp -f Natrium/natrium Example/Manual/
rm -rf Example/Manual/Natrium.lock
rm -rf Res/Natrium.framewok/run
cp -f Natrium/natrium Res/Natrium.framework/run
rm -rf Res/Natrium.framewok.zip
zip -r -X "Res/Natrium.framework.zip" Res/Natrium.framework/*
sh Res/update_version_json.sh
xcodeproj:
mv ./Package.swift ./Package.swift_
mv ./Package.local.swift ./Package.swift
swift package generate-xcodeproj
mv ./Package.swift ./Package.local.swift
mv ./Package.swift_ ./Package.swift
help:
@echo "Available make commands:"
@echo " $$ make help - display this message"
@echo " $$ make build - creates a new build"
@echo " $$ make xcodeproj - creates a xcodeproj"