Recreate your own adjustments fast after AG file creation

Got something cool to share with AppGini users? Feel free to post it here!
Post Reply
User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 1156
Joined: 2019-05-21 22:42
Location: Germany
Contact:

Recreate your own adjustments fast after AG file creation

Post by onoehring » 2019-07-04 04:50

Hi,

I have made some adjustments to the generated AG application: Change the icon(s), logo etc. to my needs.
My problem was, that each time I regenerated the application, I needed to put all "new" files in place again.
My solution is quite simple I believe.

I created a subfolder special_from_root in my generated application folder, so it looks like this (left out the rest of the files as this is just for demo purposes).

Code: Select all

admin\
hooks\
images\
languages\
resources\
special_from_root\
templates\
ajax_admin_tools.php
ajax_check_login.php
ajax_check_unique.php
ajax_combo.php
ajax_combo.php_
ajax_combo.bak.php
auditLog_functions.php
blank.gif
checkMemberID.php
...
The new folder special_from_root holds all files and folders and files in folders that match the application root, but hold indeed my own files. Example:

Code: Select all

\special_from_root\resources\images\appgini-icon.png
\special_from_root\logo.png
... 
is not the original icon anymore, but I replaced the file with an icon for my application.

When I regenerate my application of course AG creates the

Code: Select all

\resources\images\appgini-icon.png
again and replaces my own icon.

So, after generating the application from AG, I switch to Windows Explorer and switch to

Code: Select all

\special_from_root
Press CTRL+A (mark everything), press CTRL+C (copy everything)
move back to the root \
and press CTRL+V (paste). Now Windows Explorer asks to overwrite exiting files. Click YES and you are done.

When you now upload your generated application it will have your own appgini-icon.png icon an all other things you have placed at that location.

Maybe this speeds up some cleanup after generating files.
Olaf

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Recreate your own adjustments fast after AG file creation

Post by jsetzer » 2019-07-04 05:52

Hi Olaf,

thanks for the Tipp! Certain files can also be replaced directly in your AppGini application directory. In my case this is

Code: Select all

C:\Program Files (x86)\AppGini\
On generation AppGini will take and upload those files.

For example you can replace logo.png which appears while installing your web-app on a new server machine. This will not work for the code-files you have mentioned above.

Attention
On installing an AppGini update, those files will be overwritten by the setup. So please backup your customizations before updating AppGini.

Regards,
Jan
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

Post Reply