48 lines
1.3 KiB
Python
48 lines
1.3 KiB
Python
import json
|
|
import os
|
|
|
|
def create_final_manifest():
|
|
print("--- ShiroginSDK Installation ---")
|
|
|
|
while True:
|
|
version_input = input("Please enter a version number (e.g. 1.0.0): ")
|
|
if version_input:
|
|
break
|
|
print("Please enter a valid version number.")
|
|
|
|
package_data = {
|
|
"name": "com.shirogin.sdk",
|
|
"version": version_input,
|
|
"displayName": "Shirogin SDK",
|
|
"description": "ShiroginSDK",
|
|
"unity": "6000.0.60f1",
|
|
"dependencies": {
|
|
"com.google.firebase.app": "11.6.0",
|
|
"com.google.firebase.analytics": "11.6.0",
|
|
"com.unity.nuget.newtonsoft-json": "3.0.2"
|
|
},
|
|
"keywords": [
|
|
"sdk",
|
|
"shirogin",
|
|
"tools"
|
|
],
|
|
"author": {
|
|
"name": "Emir Han MAMAK",
|
|
"email": "emirhanmamak@hotmail.com",
|
|
"url": "https://www.shirogin.com"
|
|
}
|
|
}
|
|
|
|
file_name = "package.json"
|
|
try:
|
|
with open(file_name, 'w', encoding='utf-8') as f:
|
|
json.dump(package_data, f, indent=4, ensure_ascii=False)
|
|
|
|
print(f"\n✅ '{file_name}' successfully created.")
|
|
print(json.dumps(package_data, indent=4, ensure_ascii=False))
|
|
|
|
except IOError as e:
|
|
print(f"❌ Error: {e}")
|
|
|
|
if __name__ == "__main__":
|
|
create_final_manifest()
|