diff --git a/package.pl b/package.pl index 0a6b1a9..3ecbba6 100644 --- a/package.pl +++ b/package.pl @@ -12,9 +12,11 @@ print $recuento_inner.''; $recuento_inner->mkpath; my $resources = $recuento_inner->child('resources'); $resources->mkpath; -copy_recursive('/home/sergio/recuento_root/usr/bin/*.{exe,EXE}', $recuento_inner); -copy_recursive('/home/sergio/recuento_root/usr/bin/*.{dll,DLL}', $destdir); +copy_recursive('/home/sergio/recuento_root/usr/bin/recuento{,_launcher_windows}.exe', $recuento_inner); +copy_recursive('/home/sergio/recuento_root/usr/bin/rsvg-convert.exe', $recuento_inner); +copy_recursive('/home/sergio/recuento_root/usr/bin/rsvg-convert.exe', $destdir); copy_recursive('/home/sergio/recuento_root/usr/bin/*.{dll,DLL}', $recuento_inner); +copy_recursive('/home/sergio/recuento_root/usr/bin/*.{dll,DLL}', $destdir); copy_recursive('/usr/lib/gcc/x86_64-w64-mingw32/11.3.0/libgcc_s_seh-1.dll', $recuento_inner); copy_recursive('/usr/lib/gcc/x86_64-w64-mingw32/11.3.0/libgcc_s_seh-1.dll', $destdir); copy_recursive('/usr/x86_64-w64-mingw32/usr/bin/libwinpthread-1.dll', $recuento_inner); @@ -23,7 +25,7 @@ copy_recursive('/usr/lib/gcc/x86_64-w64-mingw32/11.3.0/libstdc++-6.dll', $recuen copy_recursive('/usr/lib/gcc/x86_64-w64-mingw32/11.3.0/libstdc++-6.dll', $destdir); copy_recursive('/home/sergio/recuento_root/usr/share/recuento/', $resources); move_launcher ($recuento_inner, $destdir); -make_config ($destdir); +#make_config ($recuento_inner); make_share ($destdir); compress_7z($destdir); @@ -47,7 +49,6 @@ sub make_share { $share_fonts->mkpath; $share_icons->mkpath; copy_recursive('/home/sergio/recuento_root/usr/share/icons/Adwaita', $share_icons.''); - copy_recursive('/home/sergio/recuento_root/usr/share/icons/hicolor', $share_icons.''); copy_recursive('/home/sergio/recuento_root/usr/share/glib-2.0/schemas/*', $share_schemas.''); } @@ -70,7 +71,7 @@ sub move_launcher { sub copy_recursive { my $source = shift; my $dest = shift; - return !!0+system 'cp', '-r', glob($source), $dest; + return !!0+system 'cp', '-Lr', glob($source), $dest; } sub compress_7z { my $destdir = shift; diff --git a/src/windows/launcher.c b/src/windows/launcher.c index 87a9b28..aaccbca 100644 --- a/src/windows/launcher.c +++ b/src/windows/launcher.c @@ -99,6 +99,7 @@ WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR pCmdLine, int nCmdShow) _putenv_s("DATADIR_RECUENTO", "recuento\\\\resources"); _putenv_s("GSETTINGS_SCHEMA_DIR", "share\\\\glib-2.0\\\\schemas"); + _putenv_s("XDG_DATA_HOME", "share"); _putenv_s("XDG_CONFIG_DIRS", "etc"); int return_value = execvp(argument_list[0], argument_list);