-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: WASM compatibility updates/CORS override for GitHub Pages
- Loading branch information
1 parent
39042d9
commit 6db7f94
Showing
6 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,8 +28,8 @@ jobs: | |
- name: Build Flutter Web App (WASM) | ||
run: | | ||
cd example/viewer/ | ||
cp -f extras/github-pages/* web/ | ||
flutter build web --wasm --release | ||
sed -i 's|<base href="/">|<base href="/pdfrx/">|' build/web/index.html | ||
- name: Configure Git for deployment | ||
run: | | ||
git config user.email "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<base href="/pdfrx/"> | ||
|
||
<meta charset="UTF-8"> | ||
<meta content="IE=Edge" http-equiv="X-UA-Compatible"> | ||
<meta name="description" content="pdfrx demo page"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
|
||
<!-- iOS meta tags & icons --> | ||
<meta name="mobile-web-app-capable" content="yes"> | ||
<meta name="apple-mobile-web-app-status-bar-style" content="black"> | ||
<meta name="apple-mobile-web-app-title" content="example"> | ||
<link rel="apple-touch-icon" href="icons/Icon-192.png"> | ||
|
||
<!-- Favicon --> | ||
<link rel="icon" type="image/png" href="favicon.png"/> | ||
|
||
<title>pdfrx demo page</title> | ||
<link rel="manifest" href="manifest.json"> | ||
|
||
<!-- Workaround for GitHub Pages CORS policy | ||
https://github.com/gzuidhof/coi-serviceworker --> | ||
<script> | ||
window.coi = {coepCredentialless: () => true,} | ||
</script> | ||
<script src="coi-serviceworker.min.js"></script> | ||
</head> | ||
<body> | ||
<script src="flutter_bootstrap.js" async></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters