Hans5958 / Domino-English-Translation

:earth_asia: Let's translate Domino, a Japanese MIDI editor!
MIT License
62 stars 10 forks source link

Build issue: UNC path not supported #9

Closed NCBM closed 2 years ago

NCBM commented 2 years ago

I used Windows Terminal with Ubuntu WSL2 to build locally, and I got error message "UNC path not supported". And the product was an empty file.

NCBM commented 2 years ago

The error message was given before message "Compile done!".

Hans5958 commented 2 years ago

:wave: Really weird. Last time I did it nothing bad happens. I'll take a look soon.

Hans5958 commented 2 years ago

Yeah, I've tried to run it myself and it works. Could you please give more information, such as how you run it, have you installed the requirements, the whole text of the command prompt, etc.

NCBM commented 2 years ago

Due to using Ubuntu, I didn't install Python 3.10 but to use Python 3.8 provided by Ubuntu by default. I don't think this can make any difference.

I'm sorry that the error message is in Chinese.

Building 1.44 (development version)...
Preparing...
Removing temporary files...
Copying 1.43 translations and other required files...
Copying 1.44-specific translations...
Extracting 1.44 original files...

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=C.UTF-8,Utf16=on,HugeFiles=on,64 bits,4 CPUs Intel(R) Core(TM) i3 CPU       M 330  @ 2.13GHz (20652),ASM)

Scanning the drive for archives:
1 file, 3028678 bytes (2958 KiB)

Extracting archive: ../_deploy/Domino144.7z
--
Path = ../_deploy/Domino144.7z
Type = 7z
Physical Size = 3028678
Headers Size = 2352
Method = LZMA2:23 LZMA:20 BCJ2
Solid = +
Blocks = 2

Everything is Ok

Folders: 3
Files: 226
Size:       7293612
Compressed: 3028678
Creating compile config file...
{
        "resourceVersion": "1,44,4,0",
        "fullVersion": "1.44-en.4-dev.20220220171855",
        "buildVersion": "4-dev.20220220171855",
        "executableName": "Domino_Translated_20220220171855.exe",
        "compilePath": "temp/_compile",
        "supplyTranslationReadme": "true",
        "pythonExecutable": "python"
}
Preparation done!
Compiling...
Compile process started.
Preparing resource files...
Packing 134.bin.txt to 134.bin...
Done.
Packing 136.bin.txt to 136.bin...
Done.
Packing 156.bin.txt to 156.bin...
Done.
Packing 165.bin.txt to 165.bin...
Done.
Packing 174.bin.txt to 174.bin...
Done.
Packing 217.bin.txt to 217.bin...
Done.
Packing 275.bin.txt to 275.bin...
Done.
Packing 277.bin.txt to 277.bin...
Done.
Packing 279.bin.txt to 279.bin...
Done.
Packing 280.bin.txt to 280.bin...
Done.
Packing 281.bin.txt to 281.bin...
Done.
Packing 290.bin.txt to 290.bin...
Done.
Packing 293.bin.txt to 293.bin...
Done.
Packing 295.bin.txt to 295.bin...
Done.
Packing 297.bin.txt to 297.bin...
Done.
Packing 299.bin.txt to 299.bin...
Done.
Packing 300.bin.txt to 300.bin...
Done.
Packing 301.bin.txt to 301.bin...
Done.
Packing 306.bin.txt to 306.bin...
Done.
Packing 307.bin.txt to 307.bin...
Done.
Packing 319.bin.txt to 319.bin...
Done.
Packing 322.bin.txt to 322.bin...
Done.
Compiling using Resource Hacker...
'\\wsl$\Ubuntu\home\ncbm\Domino-English-Translation\_script\temp\_compile'
用作为当前目录的以上路径启动了 CMD.EXE。
UNC 路径不受支持。默认值设为 Windows 目录。
'tmp.bat' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
Compile done!
Copying other translated files...
Removing temporary files...
Creating translation readme...
Compile process completed.
Compile done!
Copying compilation results...
Building done!
Hans5958 commented 2 years ago

Ah, it seems that you are doing it inside your WSL home directory. I only tested it in my drive directory (/mnt/d/...), and it works there due to the fact that it also uses the Windows side of things for building it (like reshack), so you need to do it there. I'm sorry.

Python 3.8 shouldn't be a issue. I built it using that version. (or 3.7, I kinda forgot)

NCBM commented 2 years ago

Very thanks, I can build it successfully now.