-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/simplified build rebased #2
Conversation
6e4e080
to
49944fb
Compare
- name: build installer | ||
working-directory: "WebUI" | ||
run: | | ||
npm install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this second npm install
necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, thanks for spotting
- symlink or copy the conda env path into /python_package_resources | ||
3. run ```npm run pack-python``` | ||
|
||
The resulting `WebUI/npm_package_res/env.7z` could be reused for all platforms. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In what circumstance does this need to be executed and reference to GitHub action
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure, if I understand the question. Do you mean, what we do with the env.7z?
This packaged empty is "as is" newly setup python env. It awaits the correct pip install commands to run to enrich for the platform specific) dependencies so the app can bootup the backend. As there are no dependencies installed, this env.7z can be used for any of the builds : arc/ultra/ultra2 and does not need to be rebuilt in general.
The npm build scripts expect this to be present, and so does the github action (at the correct point in time). The build scripts will fail, if it is not present
WebUI/build/scripts/pack-offline.js
Outdated
const platformSpecificRequirementsTxt = existingFileOrExit(path.join(__dirname, '..', '..', 'service', `requirements-${platform}.txt`)); | ||
const requirementsTxt = existingFileOrExit(path.join(__dirname, '..', '..', 'service', `requirements-${platform}.txt`)); | ||
runPipInstall(platformSpecificRequirementsTxt, offlineEnvDir) | ||
runPipInstall(requirementsTxt, offlineEnvDir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two identical tasks? Seperations between offline/online
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
loaded base requirements.txt for the second runPipInstall
WebUI/build/scripts/pack-offline.js
Outdated
process.exit(1); | ||
} | ||
}); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pip install seems to be missing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added step to execute get-pip.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see the comments...
2bca5d0
to
5db0658
Compare
so I can develop on my branch but already test the workflow Signed-off-by: Florian Esser <[email protected]>
- fix bug, where python lib basicsr requires pytorch already being present at pip install time => pip install must be executed in two steps, first install pytorch, then every- thing else - fix file encoding of license.rft: the encoding was some dos specific crosscompiling the electron app caused problems; the license could also not be rendered completely; it contained weird symbols when the installer was compiled from dos system unix fix: iconv -f windows-1252 -t utf-8 license.rft - structure build scripts a little bit, so they are easier to understand - use cross-env in npm commands, so paths specified in package.json work in all envs. Signed-off-by: Florian Esser <[email protected]>
most of the resources required to build the project you can easily get by a simply wget command. The future of the conda dependency is unclear to me hence require manual effort there instead of guessing an incertain solution. Signed-off-by: Florian Esser <[email protected]>
exclude conda dependency from build this is OS dependent Signed-off-by: Florian Esser <[email protected]>
Signed-off-by: Florian Esser <[email protected]>
let OS specifics be handled by action instead of hassling with it. Signed-off-by: Florian Esser <[email protected]>
Signed-off-by: Florian Esser <[email protected]>
Signed-off-by: Florian Esser <[email protected]>
instead of a hardcoded ref, find the installer.exe by file name ending. Signed-off-by: Florian Esser <[email protected]>
by github action Signed-off-by: Florian Esser <[email protected]>
to prevent confusion with and within github actions Signed-off-by: Florian Esser <[email protected]>
small improvements in script and naming Signed-off-by: Florian Esser <[email protected]>
pip installation was missing the same requirements file was executed twice Signed-off-by: Florian Esser <[email protected]>
5db0658
to
f9c7cfa
Compare
provide scripts, that simply setup a python env This env may be used for developers (on windows machines) Overall flow remains equal, but try to make things a little more obvious my adding named parameters of scripts. Signed-off-by: Florian Esser <[email protected]>
d51d742
to
836e047
Compare
Provide github build action for reliable and reproducable builds