Skip to content
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

Make installer script modification #28

Merged
merged 3 commits into from
Aug 2, 2023

Conversation

iLLiCiTiT
Copy link
Member

@iLLiCiTiT iLLiCiTiT commented Aug 1, 2023

Changelog Description

Modified make installer to create installer in subdir build/installer/ which will contain installer file and metadata json ready for AYON server. Removed create-server-package command which does not have real usage for deployment.

Testing notes:

Everything should work as before this PR.

  1. Run build command
  2. Run make-installer command
  3. Run upload command

The only difference is that installer is nested subfolder ./build/installer/.

@iLLiCiTiT iLLiCiTiT requested review from Minkiu and mkolar August 1, 2023 17:13
@iLLiCiTiT iLLiCiTiT added the type: enhancement Improvement of existing functionality or minor addition label Aug 1, 2023


def create_installer(ayon_root, build_root):
metadata = get_build_metadata(build_root)
ayon_version = metadata["version"]
build_content_root = get_build_content_root(build_root, ayon_version)
installer_root = build_root / "installer"
if installer_root.exists():
shutil.rmtree(str(installer_root))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should add a flag for this? Imagine we are creating several versions (or platforms), you would have to move them form the output before triggering this again, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, but in future PR. It would mean more changes.

@iLLiCiTiT iLLiCiTiT merged commit 9fcce27 into develop Aug 2, 2023
@iLLiCiTiT iLLiCiTiT deleted the enhancement/create-installer-script-modification branch August 2, 2023 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Improvement of existing functionality or minor addition
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants