Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck at Downloading assets for windows #3

Open
gliheng opened this issue Dec 6, 2021 · 1 comment
Open

Stuck at Downloading assets for windows #3

gliheng opened this issue Dec 6, 2021 · 1 comment

Comments

@gliheng
Copy link

gliheng commented Dec 6, 2021

Hi, after I compile this on windows and run it. I got following error:

Downloading assets for windows
error: TypeError: Release asset for windows not found.
    at downloadRelease (file://$deno$/bundle.js:402:19)
    at async init (file://$deno$/bundle.js:423:5)
    at async Canvas.[Symbol.asyncIterator] (file://$deno$/bundle.js:343:22)
    at async file://$deno$/bundle.js:571:18
@sebjoub
Copy link

sebjoub commented Jan 25, 2022

You will probably have to adapt this answer for windows but on linux I had to do a couple of manual operations to have a fresh version of deno_sdl2 and make the whole thing work because the deno_sdl2 referenced in the project doesn't seem to work anymore so I complied it locally and then used it in flappybird:

installed deno_sdl2 (git-clone the repo) but also installed these:
sudo apt-get install libasound2-dev
sudo apt-get install libsdl2-dev
sudo apt-get install libsdl2-ttf-dev
sudo apt-get install libsdl2-image-dev

then followed instructions for deno_sdl2:
deno install -Afq -n deno_bindgen https://raw.githubusercontent.com/littledivy/deno_bindgen/main/cli.ts
cargo install cargo-vcpkg
cargo vcpkg -v build

also had to remove the arguments: "-- --features "use_vcpkg""
so just running this command
deno_bindgen

Then is flappybird directory:
Replaced this line
import { Canvas } from "https://deno.land/x/[email protected]/src/canvas.ts";
to:
import { Canvas } from "../deno_sdl2/mod.ts";

Then run flappybird:
deno run --allow-all --unstable main.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants