# How to create a Post-Build Script

**URL:** <https://forum.xojo.com/t/how-to-create-a-post-build-script/25039>\
**Category:** General\
**Created:** [June 21, 2015, 6:56am UTC](https://forum.xojo.com/t/how-to-create-a-post-build-script/25039 "2015-06-21T06:56:30Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [June 21, 2015, 6:56am UTC](https://forum.xojo.com/t/how-to-create-a-post-build-script/25039/1 "2015-06-21T06:56:30Z")

</div>

I wanted to write a script to copy at stand-Alone build time the App icon (then other icons) and the result si in the pdf [here](http://www.mediafire.com/download/3env4ymzt645zb8/How_to_create_a_%C2%93Post-Build_Script%C2%94.pdf).

Feel free to send reports (bugs, typos, grammar errors, advices, improvements, comments, etc.).

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [June 21, 2015, 3:02pm UTC](https://forum.xojo.com/t/how-to-create-a-post-build-script/25039/2 "2015-06-21T15:02:56Z")

</div>

See the Users Guide - Framework section 2 Build Automation

---

<div class="post-metadata">

**Author:** ![Tim\_Jones](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_jones/32/8627_2.png) [@Tim\_Jones](https://forum.xojo.com/u/Tim_Jones)\
**Post date:** [June 21, 2015, 4:21pm UTC](https://forum.xojo.com/t/how-to-create-a-post-build-script/25039/3 "2015-06-21T16:21:12Z")

</div>

Once I abandoned my old, convoluted IDE Script and moved to the Build Automation, my builds are much less complex and error prone.

I just wish the IDE would display the steps during the build (\<[https://xojo.com/issue/39840](https://xojo.com/issue/39840)\> 🙂 ).

---

<div class="post-metadata">

**Author:** ![Beatrix\_Willius](https://forum.xojo.com/user_avatar/forum.xojo.com/beatrix_willius/32/282_2.png) [@Beatrix\_Willius](https://forum.xojo.com/u/Beatrix_Willius)\
**Post date:** [June 21, 2015, 5:03pm UTC](https://forum.xojo.com/t/how-to-create-a-post-build-script/25039/4 "2015-06-21T17:03:50Z")

</div>

It would even be nicer to see which IDE script is having fit if one of the scripts has a problem…

---

<div class="post-metadata">

**Author:** ![Tim\_Jones](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_jones/32/8627_2.png) [@Tim\_Jones](https://forum.xojo.com/u/Tim_Jones)\
**Post date:** [June 21, 2015, 5:05pm UTC](https://forum.xojo.com/t/how-to-create-a-post-build-script/25039/5 "2015-06-21T17:05:50Z")

</div>

> [@195753:@Beatrix Willius](#):
>
> It would even be nicer to see which IDE script is having fit if one of the scripts has a problem…

That one’s already in the system: \<[https://xojo.com/issue/39618](https://xojo.com/issue/39618)\> 🙂

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [June 22, 2015, 9:45am UTC](https://forum.xojo.com/t/how-to-create-a-post-build-script/25039/6 "2015-06-22T09:45:16Z")

</div>

> [@195735:@Norman Palardy](#):
>
> See the Users Guide - Framework section 2 Build Automation

I do. AS I download the pdf named IDEScripting.pdf. (same contents ?).

Nota: when I am on a subject for some times (5 to 10 minutes, I start to think why I waste my time ?), my patience seems to disappears as fast as water in the Death Valley. Im starting to read stuff in diagonal and end-up with anger sometimes I even scrap the whole thing.

And when what I do is common (what can be more common than copying the application icon ?)

Am I alone ?

---

<div class="post-metadata">

**Author:** ![Tim\_Jones](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_jones/32/8627_2.png) [@Tim\_Jones](https://forum.xojo.com/u/Tim_Jones)\
**Post date:** [June 22, 2015, 3:37pm UTC](https://forum.xojo.com/t/how-to-create-a-post-build-script/25039/7 "2015-06-22T15:37:45Z")

</div>

Hi Emile,

Copying the icon would be a “CopyFilesStep” that you add to the build settings for a specific platform. When you add a CopyFilesStep to the Build, you set the destination folder within you app and then drag and drop the files from Finder into the window presented. You then end up with a build section that looks like this (you can rename them):

![](https://dl.dropboxusercontent.com/u/67254350/Screen%20Shot%202015-06-22%20at%208.34.33%20AM.png)

---

<div class="post-metadata">

**Author:** ![Tim\_Jones](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_jones/32/8627_2.png) [@Tim\_Jones](https://forum.xojo.com/u/Tim_Jones)\
**Post date:** [June 22, 2015, 3:48pm UTC](https://forum.xojo.com/t/how-to-create-a-post-build-script/25039/8 "2015-06-22T15:48:44Z")

</div>

One more thing - IDE Scripting is not the same thing as using the new Build Settings. I used to use very complex (and prone to problems) IDE Scripts for my builds. As I mentioned above, since I left those and started using the Build Settings, my projects are much more trouble-free.

While you can use scripts with the Build Settings, most common steps do not require them.

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [June 23, 2015, 6:55am UTC](https://forum.xojo.com/t/how-to-create-a-post-build-script/25039/9 "2015-06-23T06:55:37Z")

</div>

Thank you Tim for your comments.

Yes, that was what I was doing. An easy task (simple task), but not from reading the docs.

What is your AddDefaultConfigs ? A Simple service file with default data you read at application open time I suppose.

BTW: is there’s someone who do that on Windows (Linux ?) ?

People told me that I used an old Windows Xoojo version, so I installed 2015r2.2, but mi license stopped at 2015r1 ! And so I could not check how to do that earlier. I will install 2015r1 and try this afternoon or so.

Also, what is the name to use for the Application Icon (Windows / Linux) ?

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 5:48pm UTC](https://forum.xojo.com/t/how-to-create-a-post-build-script/25039/10 "2020-10-29T17:48:53Z")

</div>


