nimblehq / VIPER-Templates

Xcode files templates for various parts of VIPER module
5 stars 1 forks source link

install.sh is too dependent on folder name #23

Open blyscuit opened 4 years ago

blyscuit commented 4 years ago

Right now the installation says

git clone https://github.com/nimblehq/VIPER-Templates.git && VIPER-Templates/install.sh

this is possible because the result cloned folder name is VIPER-Templates

however; if user download or clone with other method that resulting in folder with incorrect name, the install.sh script will fail.

Proposal

replace install.sh line

cp -R VIPER-Templates-master/Templates/* ~/Library/Developer/Xcode/Templates/VIPER-Templates

to

cp -R Templates/* ~/Library/Developer/Xcode/Templates/VIPER-Templates

and change Readme.md Installation from

git clone https://github.com/nimblehq/VIPER-Templates.git && VIPER-Templates/install.sh

to

git clone https://github.com/nimblehq/VIPER-Templates.git && cd VIPER-Templates && install.sh
suho commented 4 years ago

What do you think if we put VIPER-Templates into ~/Library/Developer/Xcode/Templates/File Templates?

blyscuit commented 3 years ago

What do you think if we put VIPER-Templates into ~/Library/Developer/Xcode/Templates/File Templates?

We can do that too but current issue is that if we download this project multiple times then it would have issue copying the right files.