IT Talks

๋งฅ(Mac)์—์„œ ์นด์นด์˜คํ†ก ์•ฑ 2๊ฐœ ์‚ฌ์šฉํ•˜๊ธฐ

OkOJJ 2022. 9. 6. 17:58

์นด์นด์˜คํ†ก์„ ํ•„์š”์— ๋”ฐ๋ผ 2๊ฐœ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๋ถ„๋“ค๋„ ๋งŽ์ด ์žˆ์„ํ…๋ฐ, ์•ˆ๋“œ๋กœ์ด๋“œํฐ์˜ ๊ฒฝ์šฐ์—๋Š” ๋“€์–ผ ๋ฉ”์‹ ์ € ๊ธฐ๋Šฅ์œผ๋กœ ์นด์นด์˜คํ†ก, ๋ผ์ธ, ํŽ˜์ด์Šค๋ถ๋ฉ”์‹ ์ € ๋“ฑ๋“ฑ์„ 2๊ฐœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค. (์•ˆ๋“œ๋กœ์ด๋“œ 7.0 ๋ถ€ํ„ฐ ์ƒ๊ฒผ๋‹ค๊ณ  ํ•จ)

์• ํ”Œ PC (๋งฅ, Mac)์—์„œ๋„ ์นด์นด์˜คํ†ก์•ฑ์„ ์„ค์น˜ํ•ด์„œ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋Š”๋ฐ, ๋ชจ๋ฐ”์ผ์— ์žˆ๋Š” 2๊ฐœ์˜ ์นดํ†ก์„ PC์—์„œ๋„ ๋™์‹œ์— ์‹คํ–‰์ด ๊ฐ€๋Šฅํ• ์ง€ ์ฐพ์•„๋ณด๋‹ค๊ฐ€ ์ฐพ์€ ๋ฐฉ๋ฒ•์œผ๋กœ ๊ฐ„๋‹จํžˆ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ๋งŒ๋“ค์—ˆ๋‹ค.

App Store ์—์„œ ์นด์นด์˜คํ†ก์„ ์„ค์น˜ํ•œ ํ›„์— ์•„๋ž˜ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‹คํ–‰ํ•˜๋ฉด, KakaoTalk2 ๋ผ๋Š” ์•ฑ์œผ๋กœ ๋ณต์‚ฌํ•ด์„œ 2๊ฐœ๋ฅผ ๋”ฐ๋กœ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•œ๋‹ค.

* ์†Œ์Šค : https://github.com/okojj/utils/blob/main/kakao-talk/copy-kakaotalk-app-mac.sh

#!/bin/bash

APP_NAME="KakaoTalk"
NEW_APP_NAME="${APP_NAME}2"


# delete old app
if [ -e /Applications/${NEW_APP_NAME}.app ]; then
	rm -rf /Applications/${NEW_APP_NAME}.app
fi

# copy app
cp -a /Applications/${APP_NAME}.app /Applications/${NEW_APP_NAME}.app
mv /Applications/${NEW_APP_NAME}.app/contents/MacOS/KakaoTalk /Applications/${NEW_APP_NAME}.app/Contents/MacOS/${NEW_APP_NAME}
cd /Applications/${NEW_APP_NAME}.app/Contents/

sed -i .bak "s/${APP_NAME}<\/string>/${NEW_APP_NAME}<\/string>/g" Info.plist
sed -i .bak "s/com.kakao.${APP_NAME}Mac<\/string>/com.kakao.${NEW_APP_NAME}Mac<\/string>/g" Info.plist


codesign --force --deep --sign - /Applications/${NEW_APP_NAME}.app

# open app
open /Applications/${NEW_APP_NAME}.app
728x90