Myster-Tee / TinfoilWebServer

Install your packages from your own server
GNU General Public License v3.0
124 stars 26 forks source link

I think the macOS build in the Releases page isn't working #25

Closed rogerluan closed 10 months ago

rogerluan commented 10 months ago

Hello 👋

I tried downloading an independent version for macOS and the folder structure doesn't seem right. Here are some of the latest versions I tried downloading:

image

See how the path look malformatted? Maybe it was an issue when distributing the builds.

Any help here? I'd like to try this out 😊

Thanks in advance!

Myster-Tee commented 10 months ago

You mean that you are missing the "TinfoilWebServer_v1.6.0_Framework-Independent-osx-x64" folder, right? Which decompression program are you using? Can you try another one?

rogerluan commented 10 months ago

I'm not using any particular decompression program, macOS automatically extracts zip files on our behalf, it's transparent to the user 👀

rogerluan commented 10 months ago

Good call about the decompression program though, I managed to download the raw .zip disabling Safari's automatic package extraction, and then I extracted it using macOS's built-in decompression tool and it worked! 🎉

I'm facing another issue now, though: it can't find my folder 👀

{
  "ServedDirectories": [ "/Users/rogerluan/Documents/Nintendo\\ Switch/games/switch" ],
  "StripDirectoryNames": true,
  "ServeEmptyDirectories": false,
…
…

(also tried with single \ without spaces, didn't work either)

Getting this error:

image

The real path is /Users/rogerluan/Documents/Nintendo Switch/games/switch (no backslash, just a space that needs to be escaped probably)

EDIT: Nevermind, I removed the space escaping and it worked! 🎉 "ServedDirectories": [ "/Users/rogerluan/Documents/Nintendo Switch/games/switch" ],

rogerluan commented 10 months ago

Is there anything you can do on your end to fix the decompression issue? Maybe a simpler file structure? No special characters in the path maybe? No clue 🤷‍♂️
I haven't faced this problem with any other zip files I've downloaded

Myster-Tee commented 10 months ago

Good call about the decompression program though, I managed to download the raw .zip disabling Safari's automatic package extraction, and then I extracted it using macOS's built-in decompression tool and it worked! 🎉

I'm facing another issue now, though: it can't find my folder 👀

{
  "ServedDirectories": [ "/Users/rogerluan/Documents/Nintendo\\ Switch/games/switch" ],
  "StripDirectoryNames": true,
  "ServeEmptyDirectories": false,
…
…

(also tried with single \ without spaces, didn't work either)

Getting this error:

image

The real path is /Users/rogerluan/Documents/Nintendo Switch/games/switch (no backslash, just a space that needs to be escaped probably)

EDIT: Nevermind, I removed the space escaping and it worked! 🎉 "ServedDirectories": [ "/Users/rogerluan/Documents/Nintendo Switch/games/switch" ],

Only double quotes ["] and backslashes [] need to be escaped with a preceding backslash []. Not spaces (this comes from JSON specification).

Myster-Tee commented 10 months ago

Is there anything you can do on your end to fix the decompression issue? Maybe a simpler file structure? No special characters in the path maybe? No clue 🤷‍♂️ I haven't faced this problem with any other zip files I've downloaded

I could probably do something for this, it's all about UNIX and Windows directory separator char [/] or [], but I've no time for this.