Skip to content

Commit

Permalink
update vice setup instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
stapelberg committed Mar 17, 2024
1 parent 487e270 commit d084b99
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ FROM mcr.microsoft.com/vscode/devcontainers/base:bookworm

RUN sed -i '0,/Components: main/{s/^Components: main/Components: main contrib non-free/}' /etc/apt/sources.list.d/debian.sources

RUN apt-get update && apt-get -y install --no-install-recommends vice cc65 emacs vim
RUN apt-get update && apt-get -y install --no-install-recommends vice cc65 emacs vim xpra

ADD vice-setup.sh /vice-setup.sh
RUN bash -x /vice-setup.sh
6 changes: 6 additions & 0 deletions .devcontainer/vice-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

VICEVERSION=$(x128 --version | sed -e 's,x128 (VICE ,,g;s,),,g')
wget https://downloads.sourceforge.net/project/vice-emu/releases/vice-${VICEVERSION?}.tar.gz
mkdir -p ~/.local/share/vice
tar xf vice-${VICEVERSION?}.tar.gz -C ~/.local/share/vice/ vice-${VICEVERSION?}/data --strip-components=2
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ Then, install the ROMs, which are not included in the Debian package (they are
however included in the `vice` package on Arch Linux, for example):

```
wget https://downloads.sourceforge.net/project/vice-emu/releases/vice-3.6.1.tar.gz
VICEVERSION=$(x128 --version | sed -e 's,x128 (VICE ,,g;s,),,g')
wget https://downloads.sourceforge.net/project/vice-emu/releases/vice-${VICEVERSION?}.tar.gz
mkdir -p ~/.local/share/vice
tar xf vice-3.6.1.tar.gz -C ~/.local/share/vice/ vice-3.6.1/data --strip-components=2
tar xf vice-${VICEVERSION?}.tar.gz -C ~/.local/share/vice/ vice-${VICEVERSION?}/data --strip-components=2
```

### Compiling the software into an image
Expand Down

0 comments on commit d084b99

Please sign in to comment.