I have tried nearly everything. Chili powder or black pepper only works until the next dew.
I tried a special spray, it's useless.
The only thing that worked for me to cover the whole garden was special grains made of wood and black pepper oil. You can throw it around the garden and it last one or two weeks.
For raised planter bed, I put nets originally used to cover trees for birds not to eat the fruits. It can be cut to any size and cats don't like to walk on it. Some issues :
- it's fragile. You need to replace it after one or two years.
- plants go through the net. It's hard to remove then.
- once there was a tiny bird in it. I found it soon enough for it not to starve.