add platform choosing feature while build the package