Taiwan should model the Swiss. Send every discharged army conscript home with his battle rifle and 100 rounds of ammunition. Bring them back every 12 months for a day of practice, training and updates, and then a BBQ afterwards. Make it part of the community.
Even the most bloodthirsty communist would think twice about invading if they were facing 1 million armed citizens.
It would guarantee Taiwan's political, but also create a vast gulf cultural independence from China.
Sadly Taiwan now has a lot of Quislings in their population.
Expect that there is a lot of Chinese pressure through bribes and or extortion there.
So not sure how well the Swiss model might work out in the long run.
Was a great place to visit thirty years ago.