Update exports and test files
This commit is contained in:
parent
bfdc979c4a
commit
9475b5d12c
@ -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
6
test/run-web.ps1
Normal 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
13
test/webserver.py
Normal 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)
|
Loading…
Reference in New Issue
Block a user