| 1 |
from __future__ import annotations |
| 2 |
|
| 3 |
from briefcase.bootstraps.base import BaseGuiBootstrap |
| 4 |
|
| 5 |
|
| 6 |
class EmptyBootstrap(BaseGuiBootstrap): |
| 7 |
def app_source(self): |
| 8 |
return """\ |
| 9 |
|
| 10 |
def main(): |
| 11 |
# Your app logic goes here |
| 12 |
print("Hello, World.") |
| 13 |
""" |
| 14 |
|
| 15 |
def app_start_source(self): |
| 16 |
return """\ |
| 17 |
from {{ cookiecutter.module_name }}.app import main |
| 18 |
|
| 19 |
if __name__ == "__main__": |
| 20 |
main() |
| 21 |
""" |
| 22 |
|
| 23 |
def pyproject_table_briefcase_app_extra_content(self): |
| 24 |
return """ |
| 25 |
requires = [ |
| 26 |
# Add your cross-platform app requirements here |
| 27 |
] |
| 28 |
test_requires = [ |
| 29 |
# Add your cross-platform test requirements here |
| 30 |
] |
| 31 |
""" |
| 32 |
|
| 33 |
def pyproject_table_macOS(self): |
| 34 |
return """\ |
| 35 |
universal_build = true |
| 36 |
requires = [ |
| 37 |
# Add your macOS-specific app requirements here |
| 38 |
] |
| 39 |
""" |
| 40 |
|
| 41 |
def pyproject_table_linux(self): |
| 42 |
return """\ |
| 43 |
requires = [ |
| 44 |
# Add your Linux-specific app requirements here |
| 45 |
] |
| 46 |
""" |
| 47 |
|
| 48 |
def pyproject_table_linux_system_debian(self): |
| 49 |
return """\ |
| 50 |
system_requires = [ |
| 51 |
# Add any system packages needed at build the app here |
| 52 |
] |
| 53 |
|
| 54 |
system_runtime_requires = [ |
| 55 |
# Add any system packages needed at runtime here |
| 56 |
] |
| 57 |
""" |
| 58 |
|
| 59 |
def pyproject_table_linux_system_rhel(self): |
| 60 |
return """\ |
| 61 |
system_requires = [ |
| 62 |
# Add any system packages needed at build the app here |
| 63 |
] |
| 64 |
|
| 65 |
system_runtime_requires = [ |
| 66 |
# Add any system packages needed at runtime here |
| 67 |
] |
| 68 |
""" |
| 69 |
|
| 70 |
def pyproject_table_linux_system_suse(self): |
| 71 |
return """\ |
| 72 |
system_requires = [ |
| 73 |
# Add any system packages needed at build the app here |
| 74 |
] |
| 75 |
|
| 76 |
system_runtime_requires = [ |
| 77 |
# Add any system packages needed at runtime here |
| 78 |
] |
| 79 |
""" |
| 80 |
|
| 81 |
def pyproject_table_linux_system_arch(self): |
| 82 |
return """\ |
| 83 |
system_requires = [ |
| 84 |
# Add any system packages needed at build the app here |
| 85 |
] |
| 86 |
|
| 87 |
system_runtime_requires = [ |
| 88 |
# Add any system packages needed at runtime here |
| 89 |
] |
| 90 |
""" |
| 91 |
|
| 92 |
def pyproject_table_linux_flatpak(self): |
| 93 |
return """\ |
| 94 |
flatpak_runtime = "org.freedesktop.Platform" |
| 95 |
flatpak_runtime_version = "25.08" |
| 96 |
flatpak_sdk = "org.freedesktop.Sdk" |
| 97 |
""" |
| 98 |
|
| 99 |
def pyproject_table_windows(self): |
| 100 |
return """\ |
| 101 |
requires = [ |
| 102 |
# Add your Windows-specific app requirements here |
| 103 |
] |
| 104 |
""" |
| 105 |
|
| 106 |
def pyproject_table_iOS(self): |
| 107 |
return """\ |
| 108 |
requires = [ |
| 109 |
# Add your iOS-specific app requirements here |
| 110 |
] |
| 111 |
""" |
| 112 |
|
| 113 |
def pyproject_table_android(self): |
| 114 |
return """\ |
| 115 |
requires = [ |
| 116 |
# Add your Android-specific app requirements here |
| 117 |
] |
| 118 |
""" |
| 119 |
|
| 120 |
def pyproject_table_web(self): |
| 121 |
return """\ |
| 122 |
requires = [ |
| 123 |
# Add your web-specific app requirements here |
| 124 |
] |
| 125 |
""" |