FlashDevelop 中单独的调试/发布输出
我想要有单独的输出目录用于调试和发布版本。但是,我在 FlashDevelop 中没有看到任何合适的选项。这件事可以实现吗?如果可以的话,该怎么做?如果不是,如何确定当前版本是编译为调试还是发布?
I want to have separate output directories for debug and release builds. However, I don't see any proper option in FlashDevelop. Is this thing achievable, and if so, how to do this? If not, how to determine if current build is compiled as debug or release?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您在输出路径(项目属性)中添加“-debug”,它将在发布版本中删除。
If you add "-debug" in the output path (Project propoerties) it will be removed in release builds.
是的,这是可能的。转到项目->属性->构建。在构建后命令行上,您可以定义构建完成后将发生的情况。您应该制作一个 *.bat 将构建移动到相应的文件夹,或者直接执行命令。
例如,此命令将构建的 *.swf 文件移动到调试或发布文件夹,具体取决于当前构建。
如果该目录不存在,它将创建它。
希望这有帮助
Yes, it's possible. Go to Project->Properties->Build. On the Post-Build Command Line, you can define what will happen after the build is complete. You should make a *.bat that will move the build to the corresponding folder, or execute the command directly.
For example, this command moves the built *.swf file to a debug or release folder, depending on the current build.
If the directory doesn't exists, it will create it.
Hope this helps