Update paths

This commit is contained in:
Kaenbyou Rin 2023-10-20 17:01:25 +02:00
parent 145414d218
commit b9191892f6
2 changed files with 6 additions and 6 deletions

View File

@ -17,7 +17,7 @@ limitations under the License.
require_once 'api/get.php';
require_once 'shared/utils.php';
require_once 'shared/get.php';
require_once 'contrib/get.php';
class AutoDlConfig {
private $files;

10
get.php
View File

@ -339,9 +339,9 @@ CONFIG;
$zip->addFromString('ConvertConfig.ini', $convertConfig);
$zip->addFromString('files/convert_config_linux', $convertConfigLinux);
$zip->addFromString('files/convert_config_macos', $convertConfigLinux);
$zip->addFile($currDir.'/autodl_files/readme.unix.md', 'readme.unix.md');
$zip->addFile($currDir.'/autodl_files/converter_multi', 'files/converter_multi');
$zip->addFile($currDir.'/autodl_files/depends_win.ps1', 'files/depends_win.ps1');
$zip->addFile($currDir.'/contrib/autodl_files/readme.unix.md', 'readme.unix.md');
$zip->addFile($currDir.'/contrib/autodl_files/converter_multi', 'files/converter_multi');
$zip->addFile($currDir.'/contrib/autodl_files/depends_win.ps1', 'files/depends_win.ps1');
$zip->close();
if($virtualEditions) {
@ -532,8 +532,8 @@ SCRIPT;
$zip->addFromString('uup_download_windows.cmd', $cmdScript);
$zip->addFromString('uup_download_linux.sh', $shellScript);
$zip->addFromString('uup_download_macos.sh', $shellScript);
$zip->addFile($currDir.'/autodl_files/readme.unix.md', 'readme.unix.md');
$zip->addFile($currDir.'/autodl_files/depends_win.ps1', 'files/depends_win.ps1');
$zip->addFile($currDir.'/contrib/autodl_files/readme.unix.md', 'readme.unix.md');
$zip->addFile($currDir.'/contrib/autodl_files/depends_win.ps1', 'files/depends_win.ps1');
$zip->close();
} else {
echo 'Failed to create archive.';