Author Topic: update.bat fails after revision 11659  (Read 724 times)

Offline Miguel Gimenez

  • Regular
  • ***
  • Posts: 383
update.bat fails after revision 11659
« on: April 30, 2019, 11:10:04 pm »
The change in update.bat made in revision 11659 breaks  the "Packing core UI bitmaps" part

Code: [Select]
Packing core UI bitmaps
zip I/O error: No such file or directory

zip error: Could not create output file (devel31/share/CodeBlocks/resources.zip)
zip I/O error: No such file or directory

zip error: Could not create output file (devel31/share/CodeBlocks/manager_resources.zip)
Packing plugins UI bitmaps
zip I/O error: No such file or directory

zip error: Could not create output file (devel31/share/CodeBlocks/compiler.zip)

This is the relevant code, the problem is due to the removal of ..\..\

Code: [Select]
-%ZIPCMD% -0 -qu ..\..\%CB_DEVEL_RESDIR%\resources.zip images\*.png images\12x12\*.png images\16x16\*.png images\22x22\*.png  images\32x32\*.png> nul
+"%ZIPCMD%" -0 -qu "%CB_DEVEL_RESDIR%\resources.zip"         images\*.png images\12x12\*.png images\16x16\*.png images\22x22\*.png images\32x32\*.png > nul
 cd ..\..\sdk\resources
-%ZIPCMD% -0 -qu ..\..\%CB_DEVEL_RESDIR%\manager_resources.zip images\*.png images\12x12\*.png images\16x16\*.png > nul
+"%ZIPCMD%" -0 -qu "%CB_DEVEL_RESDIR%\manager_resources.zip" images\*.png images\12x12\*.png images\16x16\*.png images\22x22\*.png images\32x32\*.png > nul
 echo Packing plugins UI bitmaps
 cd ..\..\plugins\compilergcc\resources
-%ZIPCMD% -0 -qu ..\..\..\%CB_DEVEL_RESDIR%\compiler.zip images\16x16\*.png images\22x22\*.png images\32x32\*.png > nul
+"%ZIPCMD%" -0 -qu "%CB_DEVEL_RESDIR%\compiler.zip"          images\*.png images\16x16\*.png images\22x22\*.png images\32x32\*.png > nul
+cd ..\..\..\plugins\debuggergdb\resources
+"%ZIPCMD%" -0 -qu "%CB_DEVEL_RESDIR%\debugger.zip"          images\*.png images\16x16\*.png images\22x22\*.png images\32x32\*.png > nul

EDIT: attached is a quick and dirty patch that reverts this changes; probably a better solution is to remove all "cd" and ..\..
The debugger.zip part is commented because there is no images folder there so an error is signaled.
« Last Edit: April 30, 2019, 11:30:51 pm by Miguel Gimenez »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12125
    • Travis build status
Re: update.bat fails after revision 11659
« Reply #1 on: April 30, 2019, 11:54:25 pm »
@Morten: Can you fix this?
« Last Edit: May 01, 2019, 10:44:53 am by oBFusCATed »
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]