-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the AppImage docker to Ubuntu 20.04
- Loading branch information
Showing
4 changed files
with
19 additions
and
3 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
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 |
---|---|---|
@@ -1,11 +1,15 @@ | ||
FROM ubuntu:18.04 | ||
FROM ubuntu:20.04 | ||
WORKDIR /app | ||
RUN ln -sf /usr/share/zoneinfo/Europe/Madrid /etc/localtime | ||
RUN apt -y update | ||
RUN apt -y upgrade | ||
RUN apt -y install curl gcc pkg-config xz-utils fuse libclang-dev file libfreetype6-dev | ||
RUN apt -y install g++ | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.rs | ||
# Rust 1.76 | ||
RUN sh rustup.rs -y --profile minimal -c rustfmt | ||
copy g++ /usr/local/bin/g++ | ||
copy g++ /usr/local/bin/c++ | ||
COPY linuxdeploy ./ | ||
COPY makeappimage ./ | ||
COPY apprun ./ |
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,12 @@ | ||
#!/bin/bash | ||
argc=$# | ||
argv=("$@") | ||
|
||
for (( j=0; j<argc; j++ )); do | ||
if [ "${argv[j]}" = "-std=c++20" ] | ||
then | ||
argv[j]="-std=c++2a" | ||
fi | ||
done | ||
|
||
exec /usr/bin/g++ "${argv[@]}" |
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