Compare commits

...

14 Commits

Author SHA1 Message Date
J. Fronny 857d055b76 Update .gitlab-ci.yml 2020-08-31 19:19:41 +00:00
J. Fronny d83ab8174b Remove the list-repo statement and finish up ci 2020-08-31 18:56:04 +00:00
J. Fronny cd52d9ca80 Use basic parsing in ci and display repos (for testing) 2020-08-31 18:00:24 +00:00
J. Fronny d4f396432c Update .gitlab-ci.yml 2020-08-31 17:25:06 +00:00
J. Fronny 3c8addd9be Update .gitlab-ci.yml 2020-07-31 13:35:00 +00:00
J. Fronny a531101132 Add LICENSE 2020-06-27 16:20:04 +00:00
J. Fronny d91a7887c1 Merge branch 'renovate/configure' into 'master'
Configure Renovate

See merge request JFronny/Resizor!10
2020-06-23 12:05:16 +00:00
Renovate Bot 7cc73580f6
Add renovate.json 2020-06-23 08:44:26 +00:00
J. Fronny 00e309f609 Update .gitlab-ci.yml 2020-06-21 06:21:33 +00:00
J. Fronny 28be659e60 Delete main.yml 2020-06-18 15:04:10 +00:00
J. Fronny 7e7972a6f9 Update README.md 2020-06-18 14:55:28 +00:00
J. Fronny 89f9a6fcd1 Add .gitlab-ci.yml 2020-06-18 14:55:00 +00:00
dependabot-preview[bot] 87c5df7175 Bump CC-Functions.W32 from 1.1.7450.31626 to 1.1.7468.32091
Bumps [CC-Functions.W32](https://github.com/JFronny/CC-Functions) from 1.1.7450.31626 to 1.1.7468.32091.
- [Release notes](https://github.com/JFronny/CC-Functions/releases)
- [Commits](https://github.com/JFronny/CC-Functions/compare/1.1.7450.31626...1.1.7468.32091)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-15 06:53:04 +02:00
dependabot-preview[bot] 809c8b59c2 Bump CC-Functions.W32 from 1.1.7448.24408 to 1.1.7450.31626
Bumps [CC-Functions.W32](https://github.com/JFronny/CC-Functions) from 1.1.7448.24408 to 1.1.7450.31626.
- [Release notes](https://github.com/JFronny/CC-Functions/releases)
- [Commits](https://github.com/JFronny/CC-Functions/compare/1.1.7448.24408...1.1.7450.31626)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-26 08:42:32 +02:00
6 changed files with 77 additions and 74 deletions

View File

@ -1,72 +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: |
$(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 = "Resize Windows with style"
$app.appendChild($xml.CreateElement("Version")).InnerText = "${{ steps.base_init.outputs.vers }}"
$app.appendChild($xml.CreateElement("ID")).InnerText = "e09cfca6-b6f7-4c56-96c4-d7cc2a318984"
$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("Icon")).InnerText = "https://raw.githubusercontent.com/JFronny/Resizor/master/Resizor/Resizor.ico"
$app.appendChild($xml.CreateElement("MainFile")).InnerText = $file.Name
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

49
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,49 @@
.shared_windows_runners:
tags:
- windows
image: mcr.microsoft.com/dotnet/core/sdk
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"
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 = "Resize Windows with style"
$app.appendChild($xml.CreateElement("Version")).InnerText = $asmver
$app.appendChild($xml.CreateElement("ID")).InnerText = "e09cfca6-b6f7-4c56-96c4-d7cc2a318984"
$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/Resizor/-/raw/master/Resizor/Resizor.ico"
echo NULL > app.xml
$xml.save($(gi .\app.xml).Fullname)
artifacts:
paths:
- package.zip
- app.xml
only:
- master

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,3 +1,3 @@
# Resizor
Resize Windows with style! [![UpTool2](https://img.shields.io/github/v/tag/JFronny/Resizor?color=informational&label=UpTool2)](https://jfronny.github.io/home/uptool)\
Resize Windows with style! [![UpTool2](https://img.shields.io/badge/Get%20it-on%20UpTool2-blue)](https://jfronny.gitlab.io/home/uptool)\
<small>Uses [CC-Functions.W32](https://github.com/CreepyCrafter24/CC-Functions/tree/master/W32)</small>

View File

@ -16,7 +16,7 @@
<Content Include="Resizor.ico" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="CC-Functions.W32" Version="1.1.7448.24408" />
<PackageReference Include="CC-Functions.W32" Version="1.1.7468.32091" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
</ItemGroup>

5
renovate.json Normal file
View File

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