Update exports and test files

This commit is contained in:
Isaac Shoebottom 2024-06-27 02:08:18 -03:00
parent bfdc979c4a
commit 9475b5d12c
3 changed files with 20 additions and 1 deletions

View File

@ -30,7 +30,7 @@ version/code=1
version/name=""
package/unique_name="com.example.$genname"
package/name=""
package/signed=true
package/signed=false
package/app_category=2
package/retain_data_on_uninstall=false
package/exclude_from_recents=false

6
test/run-web.ps1 Normal file
View File

@ -0,0 +1,6 @@
# Get full path of "webserver.py" script
$script = $PSScriptRoot + "\webserver.py"
# Move to export folder
Set-Location "$PSScriptRoot\..\export\web"
# Run the script
python $script

13
test/webserver.py Normal file
View File

@ -0,0 +1,13 @@
from http import server
class MyHandler(server.SimpleHTTPRequestHandler):
def my_headers(self):
self.send_header('Cross-Origin-Opener-Policy', 'same-origin')
self.send_header('Cross-Origin-Embedder-Policy', 'require-corp')
def end_headers(self) -> None:
self.my_headers()
super().end_headers()
if __name__ == "__main__":
server.test(HandlerClass=MyHandler)