The application icon is not part of the application object source, it is located in a binary only object within the library containing the application object.
I added a feature request to change this.
Everyone knows that when you save an object, there are source and compiled versions of the object stored in the library. Internally the library format stores the source and compiled code separately. If your application object is called 'myapp', the internal name of the source is myapp.sra and the compiled code is called myapp.apl. Similarly a window called w_main has source with an internal name of w_main.srw and compiled code called w_main.win. The application painter stores the application icon and default fonts in a binary only object called .pra, myapp.pra in this example.
There are no ORCA functions to work with the pra object so external compilers cannot get the icon name.
I have same problems.
If I'm building using PowerBuilder IDE there is an icon in final exe file.
If I'm building using orca which will "ImportOnly" changes from git. Then It is working ok.
If I'm useing PBAutoBuild210.exe which will recreate pbls, then resulting exe is without icon. It does not matter if I have icon in pbr or not, I have icon set in app painter without path, using PB2021 and in exported sra is :
global type konzultace from application
.......
string appicon = "KZ.ico"
......
end type
Di someone find solution?
I am having the same issue here with PB19 R3 Build 2703.
I have create a script in python in order to set up the icon on the aplication source file (generic.sra), pointing the icon to appropriate path, but its not working.
Algo tried to remove the path (from the source and also PBL), put the file in same place as the pbl and inside the folder "ws_objects\generic\generic.pbl.src".
Still missing our application icon.
Any suggestions?
thanks!