diff --git a/.gitea/workflows/build-test.yaml b/.gitea/workflows/build-test.yaml index cbb589f..d4e9735 100644 --- a/.gitea/workflows/build-test.yaml +++ b/.gitea/workflows/build-test.yaml @@ -6,14 +6,5 @@ jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: - - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - - name: Check out repository code - uses: actions/checkout@v4 - - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ gitea.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." + - run: mvnw -DskipTests=true clean package -P prod + - run: docker build -t mirai-bot:latest diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..83c7716 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM bellsoft/liberica-openjdk-debian:17.0.11-cds +LABEL authors="Kane" + +ENTRYPOINT ["top", "-b"] + +ADD target/spring-boot-docker-0.0.1-SNAPSHOT.jar /opt/spring-boot-docker.jar +ADD android_pad.json /opt +ADD device.json /opt +ADD KFCFactory.json /opt +CMD ["java", "-jar", "/opt/spring-boot-docker.jar"] diff --git a/device.json b/device.json new file mode 100644 index 0000000..cfb7c9e --- /dev/null +++ b/device.json @@ -0,0 +1,30 @@ +{ + "deviceInfoVersion": 3, + "data": { + "display": "MIRAI.056598.001", + "product": "mirai", + "device": "mirai", + "board": "mirai", + "brand": "mamoe", + "model": "mirai", + "bootloader": "unknown", + "fingerprint": "mamoe/mirai/mirai:10/MIRAI.200122.001/9082187:user/release-keys", + "bootId": "26692CCB-72A7-BF68-942E-0D435E0ACE47", + "procVersion": "Linux version 3.0.31-8RRLhiT0 (android-build@xxx.xxx.xxx.xxx.com)", + "baseBand": "", + "version": { + "incremental": "5891938", + "release": "10", + "codename": "REL" + }, + "simInfo": "T-Mobile", + "osType": "android", + "macAddress": "02:00:00:00:00:00", + "wifiBSSID": "02:00:00:00:00:00", + "wifiSSID": "", + "imsiMd5": "53763c791f940fddcb65d09ed3700272", + "imei": "867739141234828", + "apn": "wifi", + "androidId": "aa28d5bd4d1d1822" + } +}