Compare commits

...

27 Commits

Author SHA1 Message Date
J. Fronny d327bfb93f Update .gitlab-ci.yml 2020-08-31 19:26:14 +00:00
J. Fronny 85bed21599 Update .gitlab-ci.yml 2020-07-31 13:25:54 +00:00
J. Fronny a1e08a2273 Add LICENSE 2020-06-27 16:21:05 +00:00
J. Fronny 8ac79b9fb5 Merge branch 'renovate/configure' into 'master'
Configure Renovate

See merge request JFronny/testexetrisathlon!2
2020-06-23 12:06:00 +00:00
Renovate Bot dc337d8b4e
Add renovate.json 2020-06-23 08:51:51 +00:00
J. Fronny 17311cf3e4 Delete main.yml 2020-06-20 16:36:54 +00:00
J. Fronny 9f9ce976a9 Update README.md 2020-06-20 16:36:42 +00:00
J. Fronny 6c8e8c2057 Update .gitlab-ci.yml 2020-06-20 16:35:23 +00:00
J. Fronny ce9ae20a7a Update .gitlab-ci.yml 2020-06-20 16:28:51 +00:00
JFronny f2b827eac3 Cursed, legally questionable commit 2020-06-20 18:27:49 +02:00
J. Fronny 2431338d84 Update .gitlab-ci.yml 2020-06-20 15:51:41 +00:00
J. Fronny 5471318c48 Update .gitlab-ci.yml 2020-06-20 15:31:36 +00:00
J. Fronny 08679ef881 Update .gitlab-ci.yml 2020-06-20 15:20:58 +00:00
J. Fronny 3b660ab4a6 Wut is häpenin 2020-06-20 15:09:59 +00:00
J. Fronny 59ff9d309c Update .gitlab-ci.yml 2020-06-20 14:04:14 +00:00
J. Fronny 9077622b7b Update .gitlab-ci.yml 2020-06-20 13:52:18 +00:00
J. Fronny ab4d83733a Update .gitlab-ci.yml 2020-06-20 13:24:18 +00:00
J. Fronny be220a4610 Update .gitlab-ci.yml 2020-06-20 13:16:20 +00:00
J. Fronny 123c5994a2 Update .gitlab-ci.yml 2020-06-20 12:59:24 +00:00
J. Fronny b568eb1877 Update .gitlab-ci.yml 2020-06-20 12:38:02 +00:00
J. Fronny 94bd2685b6 Update .gitlab-ci.yml 2020-06-20 12:27:07 +00:00
J. Fronny edcec38f62 Update DownloadDataDepsInstall.py 2020-06-20 12:17:13 +00:00
J. Fronny 0e53527aa3 Update .gitlab-ci.yml 2020-06-20 12:08:58 +00:00
J. Fronny 3475274a92 Update .gitlab-ci.yml 2020-06-20 11:02:47 +00:00
J. Fronny 03e7ea4829 Add .gitlab-ci.yml 2020-06-20 10:55:12 +00:00
dependabot-preview[bot] d59218000b Bump Bassoon from 1.1.1 to 1.1.2
Bumps [Bassoon](https://gitlab.com/define-private-public/Bassoon) from 1.1.1 to 1.1.2.
- [Release notes](https://gitlab.com/define-private-public/Bassoon/tags)
- [Commits](https://gitlab.com/define-private-public/Bassoon/compare/Bassoon-1.1.1...Bassoon-1.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-15 06:52:16 +02:00
J. Fronny 00fc1dacd3
Update main.yml 2020-04-02 15:41:43 +02:00
13 changed files with 86 additions and 80 deletions

View File

@ -1,74 +0,0 @@
name: CD
on:
push:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Build
id: base_init
run: |
choco install ffmpeg
python DownloadDataDepsInstall.py
python DownloadData.py
$(new-object System.Net.WebClient).DownloadFile("https://www.github.com/JFronny/UpTool2/releases/latest/download/Tools.zip", "$($(pwd).Path)\Tools.zip")
& "C:\Program Files\7-Zip\7z.exe" x .\Tools.zip
rm Tools.zip
rm Install.bat
rm Remove.bat
dotnet build --verbosity:m -p:Configuration=Release
cp *\bin\Release\netcoreapp3.1\package.zip .
$file = Get-Item $(Resolve-Path *\bin\Release\netcoreapp3.1\*.exe).Path
$asm = $([Reflection.Assembly]::LoadFile($file.DirectoryName + "\" + $file.BaseName + ".dll"))
$asmver = $asm.GetName().Version.ToString()
echo "::set-output name=vers::$asmver"
- name: Create Release
id: create_release
uses: actions/create-release@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.base_init.outputs.vers }}
release_name: Release ${{ steps.base_init.outputs.vers }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload_release_asset
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./package.zip
asset_name: package.zip
asset_content_type: application/zip
- name: Generate XML
run: |
$file = Get-Item $(Resolve-Path *\bin\Release\netcoreapp3.1\*.exe).Path
$asm = [Reflection.Assembly]::LoadFile($file.DirectoryName + "\" + $file.BaseName + ".dll")
[System.XML.XMLDocument]$xml=New-Object System.XML.XMLDocument
[System.XML.XMLElement]$app=$xml.CreateElement("app")
$xml.appendChild($app)
$app.appendChild($xml.CreateElement("Name")).InnerText = $asm.GetName().Name
$app.appendChild($xml.CreateElement("Description")).InnerText = "Terminal based Tetris clone"
$app.appendChild($xml.CreateElement("Version")).InnerText = "${{ steps.base_init.outputs.vers }}"
$app.appendChild($xml.CreateElement("ID")).InnerText = "9214aca9-af09-441d-8329-612e77347eba"
$app.appendChild($xml.CreateElement("File")).InnerText = "${{ steps.upload_release_asset.outputs.browser_download_url }}"
$app.appendChild($xml.CreateElement("Hash")).InnerText = $(Get-FileHash .\package.zip).Hash
$app.appendChild($xml.CreateElement("MainFile")).InnerText = $file.Name
$app.appendChild($xml.CreateElement("Icon")).InnerText = "https://raw.githubusercontent.com/JFronny/testexetrisathlon/master/testexetrisathlon/tetris_yUxH6t_256px.ico"
echo NULL > app.xml
$xml.save($(gi .\app.xml).Fullname)
- name: Upload XML
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./app.xml
asset_name: app.xml
asset_content_type: text/xml

4
.gitignore vendored
View File

@ -1,5 +1,5 @@
#Soundtrack data
testexetrisathlon/*.mp3
#Soundtrack data (not enabled because GitLab uses arm64 for windows shared runners with which ffmpeg which is required to generate these files is not compatible)
#testexetrisathlon/*.mp3
# Created by https://www.gitignore.io/api/rider,csharp,visualstudio

54
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,54 @@
.shared_windows_runners:
tags:
- windows
uptool:
extends:
- .shared_windows_runners
stage: deploy
script: |
mkdir i
cd i
$(new-object System.Net.WebClient).DownloadFile("https://gitlab.com/JFronny/UpTool2/-/jobs/artifacts/master/raw/Installer-generic.zip?job=uptool", "$($(pwd).Path)\Install.zip")
& "C:\Program Files\7-Zip\7z.exe" x .\Install.zip
.\Installer.exe --basic i -p
cd ..
rm -R i
$Env:Path="$Env:Path;$Env:APPDATA\UpTool2\Install"
uptool --basic add-repo DevTools https://gitlab.com/JFronny/UpTool2/-/snippets/2010392/raw
uptool --basic update
uptool --basic install "UpTool2 package tools"
$Env:Path="$Env:Path;$Env:APPDATA\UpTool2\Apps\0e35d154-d0d3-45e0-b080-62f521263a44\app"
#choco install youtube-dl ffmpeg -y --nocolor --no-progress
#refreshenv
#$env:Path=(
# [System.Environment]::GetEnvironmentVariable("Path","Machine"),
# [System.Environment]::GetEnvironmentVariable("Path","User")
#) -match '.' -join ';'
#My python script to auto-generate requirements would be here but arm64 sux
mkdir .\build
dotnet publish -o .\build -c Release
$file = Get-Item $(Resolve-Path .\build\*.exe).Path
pkgtool build --binDir build --mainBin $file --packageFile .\package.zip --noLogo
$asm = $([Reflection.Assembly]::LoadFile($file.DirectoryName + "\" + $file.BaseName + ".dll"))
$asmver = $asm.GetName().Version.ToString()
[System.XML.XMLDocument]$xml=New-Object System.XML.XMLDocument
[System.XML.XMLElement]$app=$xml.CreateElement("app")
$xml.appendChild($app)
$app.appendChild($xml.CreateElement("Name")).InnerText = $asm.GetName().Name
$app.appendChild($xml.CreateElement("Description")).InnerText = "Terminal based Tetris clone"
$app.appendChild($xml.CreateElement("Version")).InnerText = $asmver
$app.appendChild($xml.CreateElement("ID")).InnerText = "9214aca9-af09-441d-8329-612e77347eba"
$app.appendChild($xml.CreateElement("File")).InnerText = $CI_PROJECT_URL + "/-/jobs/" + $CI_JOB_ID + "/artifacts/raw/package.zip"
$app.appendChild($xml.CreateElement("Hash")).InnerText = $(Get-FileHash .\package.zip).Hash
$app.appendChild($xml.CreateElement("MainFile")).InnerText = $file.Name
$app.appendChild($xml.CreateElement("Icon")).InnerText = "https://gitlab.com/JFronny/testexetrisathlon/-/raw/master/testexetrisathlon/tetris_yUxH6t_256px.ico"
echo NULL > app.xml
$xml.save($(gi .\app.xml).Fullname)
artifacts:
paths:
- package.zip
- app.xml
only:
- master

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RiderProjectSettingsUpdater">
<option name="vcsConfiguration" value="1" />
<option name="vcsConfiguration" value="2" />
</component>
</project>

View File

@ -4,5 +4,5 @@ from subprocess import call
packages = [dist.project_name for dist in pkg_resources.working_set]
if not "youtube-dl" in packages:
packages += ["youtube-dl"]
packages = ["youtube-dl"] + packages
call("pip install --upgrade " + ' '.join(packages), shell=True)

21
LICENSE Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2020 J. Fronny
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,5 +1,5 @@
# testexetrisathlon
[![UpTool2](https://img.shields.io/github/v/tag/JFronny/testexetrisathlon?color=informational&label=UpTool2)](https://jfronny.github.io/home/uptool)\
[![UpTool2](https://img.shields.io/badge/Get%20it-on%20UpTool2-blue)](https://jfronny.gitlab.io/home/uptool)\
To download the files required for building, just run `DownloadData.py`
If you don't have youtube-dl installed (or it is outdated), run `DownloadDataDepsInstall.py`

5
renovate.json Normal file
View File

@ -0,0 +1,5 @@
{
"extends": [
"config:base"
]
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
testexetrisathlon/Intro.mp3 Normal file

Binary file not shown.

View File

@ -33,7 +33,7 @@
<Compile Remove="WindowsSizeSetter.cs" Condition="'$(OS)' != 'Windows_NT'" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Bassoon" Version="1.1.1" Condition="'$(OS)' != 'Windows_NT'" />
<PackageReference Include="Bassoon" Version="1.1.2" Condition="'$(OS)' != 'Windows_NT'" />
<PackageReference Include="NAudio" Version="1.10.0" Condition="'$(OS)' == 'Windows_NT'" />
</ItemGroup>
</Project>