Cubxity / typstudio

A W.I.P desktop application for a new typesetting language, typst.
GNU General Public License v3.0
580 stars 18 forks source link

Portable AMD64 (x86-64) binary Win11 download #4

Closed humphreylee closed 1 year ago

humphreylee commented 1 year ago

Please provide win_x86_64 binary zipped download. This is due to restriction (no admin) on my machine. Thanks.

jlb6907 commented 1 year ago

+1 for me. Thanks.

sitandr commented 1 year ago

Tauri says nothing about exporting as portable, but extracting just the compiled .exe from src-tauri/target/release seems working for me. For now there are no additional resourses used, so there is only an .exe file.

Compiled on Windows 11 x64, so may be some incompatibility issues on other Windows versions. I know for sure that this will not work on Windows 7 without WebView installed.

typstudio.zip

(This is no kind of official, just wanted to help. I hope that in future, when it will be stable, that will be automated with GithubActions for releases)

You will need to confirm launching unknown app, but it works for me even without extracting it from zip. There is a bunch of web app functionality missing for now, but I think it is still cool for the start! (probably better than using current state of lsp with usual editor)

P.S. Feel free to ask for an update if still no official releases are present.

humphreylee commented 1 year ago

Thanks, the zip file of the download link is working. Is there more versatile solution rather this hard link? For example, to provide together with other download format

sitandr commented 1 year ago

It looks from tauri-apps/tauri#3109 that the main problem with portable release is possible absence of WebView installed (and autoupdate and few other features absence). So as soon as all resources are added to the zip (that project hasn't any yet), that should work for Windows 10+ (not sure about 10, actually). If portable version is published, that should be certainly mentioned in the releases.

Bad news is that Tauri almost nowhere else mentions portable releases and doesn't aim to support them, so there can be some problems in future.

UPD: I'm afraid that adding the command to Github actions is not that easy thing. It seems easy at first sight and it is possible, but it may require a lot of efforts (didn't find actions where it is properly implemented).

Another "not very good" hack solution I found is extracting .exe stright from .msi as it just places it in the proper dict, creates shortcuts, that kind of staff. The extracted .exe should work the same way the zipped exe I put there works.

(In the latter case you will need to add to extracted "Path" file ".exe" extension, that worked for me)

humphreylee commented 1 year ago

Even though this is a "hack", but still a working solution. Thanks.