Skip to content

Commit

Permalink
fix #17: encrypt.sh 경로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
0inn committed Aug 7, 2023
1 parent 2d628fc commit fc17376
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Encrypted/XCConfig/Target/Framework.xcconfig.encrypted
Original file line number Diff line number Diff line change
@@ -1 +1 @@
�ѕ4��i�[�W����i������}`����('=WޞsM0�f��Q�'b ���W:��ô;��y�_��D���b�+���υ�8�!
�ѕ4��i�[�W����i��{�X7L�O�Ӎt��T��WB�Bl~P�j��J5��{���H7�
16 changes: 9 additions & 7 deletions Scripts/encrypt.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
#!/bin/bash

KEY_PATH="Tuist/master.key"
KEY_PATH="../../Tuist/master.key"

ENCRYPTED_DIR="Encrypted"
ENCRYPTED_DIR="../../Encrypted"
SECRET_DIR="Secrets"
XCCONFIG_APP_SECRET_DIR="XCConfig/App"
XCCONFIG_TARGET_SECRET_DIR="XCConfig/Target"

OUTPUT_DIR="Projects/Keyme/Resources/Secrets"
XCCONFIG_APP_DIR="XCConfig/App"
XCCONFIG_TARGET_DIR="XCConfig/Target"
OUTPUT_DIR="Resources/Secrets"
XCCONFIG_APP_DIR="../../XCConfig/App"
XCCONFIG_TARGET_DIR="../../XCConfig/Target"

# Find all non-hidden files in the secrets directory that don't have the .encrypted extension
files=($(find ${OUTPUT_DIR} -type f ! -name ".*" ! -name "*.encrypted"))
Expand All @@ -23,9 +25,9 @@ do
filename=$(basename $file)

if [[ $file == *"$XCCONFIG_APP_DIR"* ]]; then
out_dir="${XCCONFIG_APP_DIR}"
out_dir="${XCCONFIG_APP_SECRET_DIR}"
elif [[ $file == *"$XCCONFIG_TARGET_DIR"* ]]; then
out_dir="${XCCONFIG_TARGET_DIR}"
out_dir="${XCCONFIG_TARGET_SECRET_DIR}"
else
out_dir="${SECRET_DIR}"
fi
Expand Down

0 comments on commit fc17376

Please sign in to comment.