Bug 7338

PBAutoBuild210 does not add icon to resulting exe 13 October, 2021

Aleš Vojáček
05 October, 2021
Product: PowerBuilder Category: Compiler
Version: 2021 Build: 1288
Classification: Appeon bug Publishing: Public
Priority: P2
Status: Scheduling Reason:
Communication Status: Waiting for Customer
Ken Guo @Appeon 13 October, 2021
#19
Hi Aleš,

Yes,you understand correctly.

Regards,
Ken
Aleš Vojáček 13 October, 2021
#18
Hi,
If I understand correctly, I have to have ResfresPbl=false and when ever we delete object from pbl we have to commit pbls into repo?
If so, we internally discuss if it is worth to move towards PBA or stay with orca/pbc until this issue will be solved.
Thank you Ales.
Ken Guo @Appeon 13 October, 2021
#17
Hi Aleš,

When RefreshPbl=true: PBAutoBuild210(PBA) is executed, it deletes the PBL first, then imports the source code object to a new PBL, so the objects in the PBL are aligned with objects in ws_objects.

When RefreshPbl=false: PBA is executed, if some objects are deleted from ws_objects, the original PBL will not do the same, which means, it only updates the objects but doesn’t delete any object.

So now this issue is mainly caused by the absence of icon content in the new PBL file generated by PBA, resulting in the absence of icon content in the exe generated by this PBL. However, you can work around this issue by modifying the application object, the icon content can be re-written into the binary PBL file.

Regards,
Ken
Aleš Vojáček 13 October, 2021
#16
Hi,
this workaround worked localy.
What exactly RefreshPbl do?
I want to use PBAutoBuild210 in script on build server and we do not commiting pbls into GIT repo with every change, so I thought that RefreshPbl is the way how to "Refresh pbls" from source files in ws_objects. 
Best regards Ales
Ken Guo @Appeon 12 October, 2021
#15
Hi Aleš,

Earlier when I said we need you to provide a test case, I meant we need you to provide pbt, pbl, and ws_objects folder, etc.

But I further analyzed it today why the workaround doesn’t work, and I think it’s because of the   "RefreshPbl": true   setting, so I suggest you follow the steps below to try the workaround again:

Step 1: Set the value of RefreshPbl in the Konzultace.json file from true to false. For example:
{"Target": ".\\konzultace.pbt","LocalProjectPath": ".\\","RefreshPbl": true}
Change the above to below:
{"Target": ".\\konzultace.pbt","LocalProjectPath": ".\\","RefreshPbl": false}

Step 2: In PB IDE, open the application object, make a trivial change, such as adding a space or changing a property, then save and exit.

Step 3: Re-run PBAutoBuilder210 and see if it resolves the issue. Please do not delete the original PBL before executing PBAutoBuilder210.


Regards,
Ken
Aleš Vojáček 12 October, 2021
#14
Hi,
I'm not sure why yours reply in #11 and #13 is exat same? And what realy means "If it’s ok, can you send your case to us so we can analyze it?", I can provide you informations whatever you want but I send what I meant is needed. Please can you be more specific? Or You do not need anything from me?
Best regards Ales
Ken Guo @Appeon 12 October, 2021
#13
Hi Aleš,

I’m not sure why the workaround isn’t working for you. If it’s ok, can you send your case to us so we can analyze it?

Also, our developers have raised the priority of this issue and plan to fix it in the next MR.

Regards,
Ken
Aleš Vojáček 12 October, 2021
#12
Hi,
I did follow your suggestions, so I changed application object and try to use PBAutoBuild210 to generate applications exe file. It still does not have icon.
If you need more detailed information, please say so. 
The json file for build is still same, only change what I did was different display name of application (in sra file)
Best regards Ales
Ken Guo @Appeon 12 October, 2021
#11
Hi Aleš,

I’m not sure why the workaround isn’t working for you. If it’s ok, can you send your case to us so we can analyze it?

Also, our developers have raised the priority of this bug. We will keep you posted about the progress.

Regards,
Ken
Aleš Vojáček 12 October, 2021
#10
Hi,
yours suggestion of workaround did not help.
I will continue with using orca + pbcompile until issue will be resolved.
Best regards Ales
Ken Guo @Appeon 09 October, 2021
#9
Hi Aleš,

Currently, there is no plan to fix it in the short term. 

I suggest that you try and see if you can work around it using the following method:
1. In PB IDE, open the application object, make a trivial change, such as adding a space or changing a property, then save and exit.
2. Re-run PBAutoBuilder210 and see if it resolves the issue.

Regards,
Ken
Aleš Vojáček 08 October, 2021
#8
Hi,
thank you for uptade, can you tell how long it will take?
Best regards Ales
Ken Guo @Appeon 08 October, 2021
#7
Hi Aleš,

Thanks for reporting this problem! We reproduced it on our end and will do further research to figure it out. We will keep you posted about the progress.

Regards,
Ken
Kai Zhao @Appeon 05 October, 2021
#6
Hi Zahib, 

Thank you for reporting this issue! We have been working on it and will need some time to figure it out, we will get back to you if we need additional information or any progress we would make.

Regards,
ZhaoKai
Aleš Vojáček 05 October, 2021
#5
Thank you a lot.
Regards Ales
Chris Pollach @Appeon 05 October, 2021
#4
Hi Aleš;

  Thank you for that extra information!

  I will now transfer this ticket over to our main Support / Engineering team for an ORCA specialist to review & provide further feedback.

Regards ... Chris
Aleš Vojáček 05 October, 2021
#3
Hi,
I'm using orca in current build process, so I added it here to demonstrate build process which works.
I want to use only pbautobuild for whole process, but not for getting sources from GIT. This will be done by TeamCity build server which triggers build after any commit. Sources are pulled from git, then powershell script is executed. I this powershell script I will run PBAutobuild. Autobuild will merge changes in ws_objects into pbls and compile whole app.
Best regards Ales
Chris Pollach @Appeon 05 October, 2021
#2
Hi Ales;

  Thank you for the compile settings that you are using.

  Have you tried using the "PBAutoBuild" utility for the entire process? You no longer need ORCAScript if your repository is GIT or SVN based. The PBAutoBuild utility can do it all.

Regards ... Chris
Aleš Vojáček 05 October, 2021
#1
buildfiles.zip (3KB)

Resulting exe after build does not have ico.
If I compile app using PB IDE or orcascript + pbc210 application has icon.
If I use  PBAutoBuild210 + json application does not have icon.

orcascript, json and powershell scripts are attached in zip file.

Tried to add icon in pbr, remove from pbr, delete old exe but nothing helped.
It seems, that after importing files from ws_objects it does not add icon. 
If I then open application in PB IDE and deploy application from there, resulting exe does have icon.


*Reproduce Steps:


Remarks:
OS:
All
Platform:
32-bit
Database Type:
Database Version: