HelloZeroNet / HelloZeroNet/ZeroNet
Packaging ZeroNet for Mac/Win/Linux
- Ngôn ngữ chính
- JavaScript
- Star
- 18.8k
- Fork
- 2.3k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
So this is already a solved problem in ZeroBundle, but I'd like to provide an asset for Godot that essentially bundles and executes ZeroNet when someone launches a game that uses ZeroNet for data storage.
To achieve this, we of course need Mac/Win/Linux-specific versions of OpenSSL+Python, which I believe ZeroBundle already packages, though I have some concerns. Firstly, I can't access the Window's bundle since it's an .exe (running on Linux here, though do have wine...). Secondly I don't think we want to show things such as the ZeroNet tray bar icon on Windows if it's just running for a game's sake.
Would it be possible to provide the Python+OpenSSL binaries for Mac/Win/Linux somewhere which we can just use to create and update a third-party Godot package for ZeroNet?
Btw the ZeroFrame package for Godot is already looking quite good :)
```
func _be_external_program():
# Open a connection to a ZeroNet site
yield(use_site("18sGzRGJaTkuywmEyfPEZp1YG1dbA46h6m"), "site_connected")
# Send siteInfo command to retrieve information about the site
var response = yield(cmd("siteInfo", {}), "command_completed")
print("Site information: ", response)
# Store some data on the site
var data = Marshalls.utf8_to_base64(JSON.print({"score": 500}))
response = yield(cmd("fileWrite", {"inner_path": "data/user/data.json", "content_base64": data}), "command_completed")
print("Store response: ", response)
# Publish the data (Needs cert)
# Retrieve that data
response = yield(cmd("fileGet", {"inner_path": "data/user/data.json"}), "command_completed")
print(JSON.parse(response).result)
```
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu bằng cách xem xét việc đóng gói ZeroBundle được tham chiếu trong issue và tích hợp Godot ZeroFrame. So sánh các bundle Python/OpenSSL dành riêng cho từng nền tảng, bao gồm executable trên Windows và hành vi của khay hệ thống. Được xem là hoàn tất khi một package Godot đã được ghi tài liệu có thể bundle và cập nhật các thành phần cần thiết trên Mac, Windows và Linux mà không có biểu tượng khay không mong muốn; không xác định file repository hoặc test nào.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- godot, python
- Lĩnh vực
- build-system, desktop
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 20/100