Skip to content

Commit 789eab5

Browse files
committed
Feature automatically download and unzip CPython
1 parent 3855797 commit 789eab5

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

.github/workflows/release.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ jobs:
1414
uses: actions/checkout@v2
1515

1616
- name: Set up build environment
17-
run: |
18-
sudo apt-get update
19-
sudo apt-get install -y gcc-mingw-w64-i686
17+
run: make setup-environment
18+
19+
- name: Download and unzip python
20+
run: make download-and-unzip-cpython
2021

2122
- name: Compile project
2223
run: make

README.md

+2-7
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,12 @@ Auto Market mod implemented using StrongMod, and it's included by default
55
![Auto Market Screenshot](screenshots/automarket.png)
66

77
## Installation:
8-
1. Download Python (32-bit) version 3.8.10 or newer:
9-
- Download it from: https://www.python.org/downloads/windows/
10-
- Choose the Windows embeddable package (32-bit).
11-
- Extract the contents to your game's installation path.
12-
13-
2. Download StrongMod:
8+
1. Download StrongMod:
149
- Get the latest version from: https://github.com/strongmods/StrongMod/releases
1510
- Download strongmod.zip.
1611
- Extract the contents to your game's installation path.
1712

18-
3. Run `start_game.bat`
13+
2. Run `start_game.bat`
1914

2015
## Notes:
2116
- StrongMod is currently in development and may not have a complete set of features yet.

makefile

+10
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,15 @@ strongmod/version.py:
2020
@echo "# This file is automatically generated. Do not manually edit." > $@
2121
@echo "version = \"$(GIT_TAG)\"" >> $@
2222

23+
24+
setup-environment:
25+
sudo apt-get update
26+
sudo apt-get install -y gcc-mingw-w64-i686 unzip
27+
28+
download-and-unzip-cpython:
29+
wget https://www.python.org/ftp/python/3.8.10/python-3.8.10-embed-win32.zip
30+
unzip -n python-3.8.10-embed-win32.zip
31+
rm python-3.8.10-embed-win32.zip
32+
2333
.PHONY: strongmod/version.py
2434

0 commit comments

Comments
 (0)