-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot build app because of wrong path #5
Comments
Interesting. |
Yes i passed |
The docs said it was obligatory to use |
I think I have missed that case on windows, since JustUpdate expects a onedir build, not a onefile build. |
Thank you for your kindness ^^ |
I've just found that when passing the
While if i don't pass the
ButWhen i try to commit to the repo it returns error again:
In the docs it's not very clear... Is this the correct sequence? Steps to reproduce
from justupdate.client.client import JustUpdateClient
from client_config import ClientConfig
if __name__ == "__main__":
client = JustUpdateClient(ClientConfig(), "1.0.0", "stable")
if client.update_available():
print("An update is available!")
# proceed to download.
else:
print("No update available")
# no update available, we are up to date.
Here goes into error. Spec file
|
Thanks for the additional information. That could be the cause. |
UpdateSo, i installed NSIS from here and i still got the error: → PyUpdater-Demo: [master +3 ~0 -0 !]› justupdate commit 0.0.1
2020-11-19 05:23 JustUpdate INFO JustUpdate - 1.3.7.
2020-11-19 05:23 JustUpdate INFO Starting commit process for build version 0.0.1 / 0.0.1.
2020-11-19 05:23 JustUpdate INFO Producing executable
[WinError 2] Impossibile trovare il file specificato
2020-11-19 05:23 JustUpdate ERROR [WinError 2] Impossibile trovare il file specificato I investigated a bit and found that maybe it could be because of these lines in the function In fact, using a new PowerShell session to launch nsis or makensis (even with .exe) fails... → C:\Users\Luca Salvarani› makensis
makensis : Termine 'makensis' non riconosciuto come nome di cmdlet, funzione, programma eseguibile o file script. Controllare l'ortografia
del nome o verificare che il percorso sia incluso e corretto, quindi riprovare.
In riga:1 car:1
+ makensis
+ ~~~~~~~~
+ CategoryInfo : ObjectNotFound: (makensis:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException I then added to the PATH the path where nsis is installed ( → C:\Users\Luca Salvarani› makensis
Usage:
makensis [ option | script.nsi | - ] [...]
Options:
/CMDHELP [item] prints out help for 'item', or lists all commands
/HDRINFO prints information about what options makensis was compiled with
/LICENSE prints the makensis software license
/VERSION prints the makensis version and exits
/Px sets the compiler process priority, where x is 5=realtime,4=high,
3=above normal,2=normal,1=below normal,0=idle
/Vx verbosity where x is 4=all,3=no script,2=no info,1=no warnings,0=none
/WX treat warnings as errors
/Ofile specifies a text file to log compiler output (default is stdout)
/PAUSE pauses after execution
/NOCONFIG disables inclusion of <path to makensis.exe>\nsisconf.nsh
/NOCD disables the current directory change to that of the .nsi file
/INPUTCHARSET <ACP|OEM|CP#|UTF8|UTF16<LE|BE>>
/OUTPUTCHARSET <ACP|OEM|CP#|UTF8[SIG]|UTF16<LE|BE>[BOM]>
/[SAFE]PPO preprocess to stdout/file
/Ddefine[=value] defines the symbol "define" for the script [to value]
/Xscriptcmd executes scriptcmd in script (i.e. "/XOutFile inst.exe")
parameters are processed by order (/Ddef ins.nsi != ins.nsi /Ddef)
For script file name, you can use - to read from the standard input
You can also use - as an option character: -PAUSE as well as /PAUSE
You can use a double-dash to end options processing: makensis -- -ins.nsi Vscode still didn't find it s i restarted it and BAM: → PyUpdater-Demo: [master +3 ~0 -0 !]› justupdate commit 0.0.1
2020-11-19 05:42 JustUpdate INFO JustUpdate - 1.3.7.
2020-11-19 05:42 JustUpdate INFO Starting commit process for build version 0.0.1 / 0.0.1.
2020-11-19 05:42 JustUpdate INFO Producing executable
2020-11-19 05:42 JustUpdate INFO Calculating checksum.
2020-11-19 05:42 JustUpdate INFO Looking for existing metadata.
2020-11-19 05:42 JustUpdate INFO Saving updated metadata.
2020-11-19 05:42 JustUpdate INFO Moving executable.
2020-11-19 05:42 JustUpdate INFO Committed version 0.0.1. Now it works |
→ PyUpdater-Demo: [master +3 ~0 -0 !]› justupdate make-spec --onedir --windowed .\main.py
2020-11-19 05:53 JustUpdate INFO JustUpdate - 1.3.7.
2020-11-19 05:53 JustUpdate INFO Spec file written.
→ PyUpdater-Demo: [master +4 ~0 -0 !]› justupdate build .\win.spec
2020-11-19 05:54 JustUpdate INFO JustUpdate - 1.3.7.
2020-11-19 05:54 JustUpdate INFO Building.
2020-11-19 05:55 JustUpdate INFO Build completed.
2020-11-19 05:55 JustUpdate INFO Checking build integrity
2020-11-19 05:55 JustUpdate INFO Done
→ PyUpdater-Demo: [master +4 ~0 -0 !]› justupdate commit 0.0.2
2020-11-19 05:55 JustUpdate INFO JustUpdate - 1.3.7.
2020-11-19 05:55 JustUpdate INFO Starting commit process for build version 0.0.2 / 0.0.2.
2020-11-19 05:55 JustUpdate INFO Producing executable
2020-11-19 05:55 JustUpdate INFO Calculating checksum.
2020-11-19 05:55 JustUpdate INFO Looking for existing metadata.
2020-11-19 05:55 JustUpdate INFO Saving updated metadata.
2020-11-19 05:55 JustUpdate INFO Moving executable.
2020-11-19 05:55 JustUpdate INFO Committed version 0.0.2.
→ PyUpdater-Demo: [master +4 ~0 -0 !]› justupdate upload -s gh-archive
2020-11-19 05:55 JustUpdate INFO JustUpdate - 1.3.7.
2020-11-19 05:55 JustUpdate INFO Starting upload with gh-archive uploader service.
2020-11-19 05:55 JustUpdate INFO Checking out files for upload.
2020-11-19 05:55 JustUpdate INFO Files to upload: ['ju-repo\\deploy\\AutoUpdatingAPP-Test-0.0.2.exe', 'ju-repo\\deploy\\metadata-win.ju'].
2020-11-19 05:55 JustUpdate INFO Upload done. Moving uploaded files to archive. Then i moved the 2 files 'ju-repo\deploy\AutoUpdatingAPP-Test-0.0.1.exe', 'ju-repo\deploy\metadata-win.ju' into the directory specified into the config ( After launching the executable into Am i missing something? You can check everything i am doing in this repository: https://github.com/LukeSavefrogs/AutoUpdatingAPP-Test |
The update url "https://github.com/LukeSavefrogs/AutoUpdatingAPP-Test/deployedFiles" does not exist, and I think that is why you are getting that fatal error (but I'm not sure). I'm also working on adding a new command to JustUpdate, that will check if everything is okay, so problems like yours wont happen again. |
There is actually a
win.exe
file but is underju-repo\\dist\\win.exe
Here is the log:
The text was updated successfully, but these errors were encountered: