23 lines
387 B
Bash
Executable File
23 lines
387 B
Bash
Executable File
#!/bin/bash
|
|
|
|
## Run this build script at root
|
|
## Ex)
|
|
## $ ./scripts/build.sh
|
|
##
|
|
|
|
CONSOLE_APP=$1
|
|
CERT_NAME="Developer ID Application: Chung Min Ahn (NYU8YAYHF8)"
|
|
|
|
echo "build console bin/${CONSOLE_APP}"
|
|
|
|
cd ${CONSOLE_APP}
|
|
|
|
rm -rf .build
|
|
|
|
swift build -c release --enable-dead-strip
|
|
|
|
codesign --sign "${CERT_NAME}" .build/release/${CONSOLE_APP}
|
|
|
|
cp .build/release/${CONSOLE_APP} ../bin
|
|
|