[RenPy] 纯文本查看 复制代码
## 将文件列为 None 来使其从已生成的分发版中排除。
build.classify('**~', None)
build.classify('**.bak', None)
build.classify('**/.**', None)
build.classify('**/#**', None)
build.classify('**/thumbs.db', None)
build.classify('**.psd', None)
## 若要打包文件,需将其列为“archive”。########################################################
# Declare two archives.
build.archive("sys", "all")
build.archive("images", "all")
build.archive("audio", "all")
# Put script files into the scripts archive.
#build.classify("game/**.rpy", "scripts")
#build.classify("game/**.rpyc", "scripts")
# Put images into the images archive.
build.classify("game/**.jpg", "images")
build.classify("game/**.png", "images")
build.classify("game/**.bmp", "images")
build.classify('game/**.ttf', 'sys')
build.classify('game/**.rpy', 'sys')
build.classify('game/**.rpyc', 'sys')
build.classify('game/**.ogg', 'audio')
build.classify('game/**.wav', 'audio')
先打包进archive里再打包apk,不要的文件如PSD排除掉 |