Skip to content

Commit

Permalink
Extracted 0publish, 0capture and 0bootstrap command-line tools into s…
Browse files Browse the repository at this point in the history
…eparate repos
  • Loading branch information
bastianeicher committed Mar 28, 2024
1 parent 829d2e1 commit f22d6fc
Show file tree
Hide file tree
Showing 113 changed files with 147 additions and 4,860 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
path: 0publish-win-${{steps.gitversion.outputs.nuGetVersion}}.*
path: 0publish-gui-dotnet-${{steps.gitversion.outputs.nuGetVersion}}.*

# Release
- name: Create GitHub Release
if: github.ref_type == 'tag'
uses: softprops/action-gh-release@v2
with:
files: |
0publish-win-${{steps.gitversion.outputs.legacySemVer}}.xml
0publish-win-${{steps.gitversion.outputs.legacySemVer}}.tar.zst
0publish-gui-dotnet-${{steps.gitversion.outputs.legacySemVer}}.xml
0publish-gui-dotnet-${{steps.gitversion.outputs.legacySemVer}}.tar.zst
body: |
**[Documentation and download instructions](https://docs.0install.net/tools/0publish-win/)**
**[Documentation and download instructions](https://docs.0install.net/tools/0publish-gui/)**
Based on [Zero Install .NET ${{steps.gitversion.outputs.nuGetVersion}}](https://github.com/0install/0install-dotnet/releases/${{steps.gitversion.outputs.nuGetVersion}}).
- name: Publish feed
Expand All @@ -42,5 +42,5 @@ jobs:
GH_TOKEN: ${{secrets.PERSONAL_TOKEN}}
run: >
gh workflow run --repo=0install/apps Incoming
-f feed_url=https://github.com/${{github.repository}}/releases/download/${{github.ref_name}}/0publish-win-${{steps.gitversion.outputs.nuGetVersion}}.xml
-f archive_url=https://github.com/${{github.repository}}/releases/download/${{github.ref_name}}/0publish-win-${{steps.gitversion.outputs.nuGetVersion}}.tar.zst
-f feed_url=https://github.com/${{github.repository}}/releases/download/${{github.ref_name}}/0publish-gui-dotnet-${{steps.gitversion.outputs.nuGetVersion}}.xml
-f archive_url=https://github.com/${{github.repository}}/releases/download/${{github.ref_name}}/0publish-gui-dotnet-${{steps.gitversion.outputs.nuGetVersion}}.tar.zst
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
/src/.vs/
/src/.idea/
/src/_ReSharper.*/
/src/*/obj/
/src/*/bin/
/src/obj/
/src/bin/

# Output
/artifacts/
/0publish-win-*.xml
/0publish-win-*.tar.zst
/0publish-gui-dotnet-*.xml
/0publish-gui-dotnet-*.tar.zst
8 changes: 2 additions & 6 deletions .tx/config
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ type = RESX
source_lang = en
lang_map = pt_PT: pt-PT, pt_BR: pt-BR

[o:eicher:p:0install-win:r:publish-cli]
source_file = src/Publish.Cli/Properties/Resources.resx
file_filter = src/Publish.Cli/Properties/Resources.<lang>.o.resx

[o:eicher:p:0install-win:r:publish-win]
source_file = src/Publish.WinForms/Properties/Resources.resx
file_filter = src/Publish.WinForms/Properties/Resources.<lang>.o.resx
source_file = src/Properties/Resources.resx
file_filter = src/Properties/Resources.<lang>.o.resx
29 changes: 29 additions & 0 deletions 0publish-gui-dotnet.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<interface xmlns="http://zero-install.sourceforge.net/2004/injector/interface">
<name>0publish-gui - .NET version</name>
<summary>GUI editor for Zero Install feeds</summary>
<description>
Publishing a program using Zero Install requires you to create an XML file
listing the available versions, where to get them, and what other software they
depend on.

This program provides a simple graphical interface for creating and editing
these feeds.</description>
<icon href="https://apps.0install.net/0install/0publish.png" type="image/png"/>
<icon href="https://apps.0install.net/0install/0publish.ico" type="image/vnd.microsoft.icon"/>
<homepage>https://docs.0install.net/tools/0publish-gui/</homepage>

<feed-for interface="https://apps.0install.net/0install/0publish-gui-dotnet.xml"/>

<group license="LGPL v3 (GNU Lesser General Public License)">
<requires interface="https://apps.0install.net/utils/gnupg.xml">
<environment insert="." name="PATH"/>
</requires>
<command name="run" path="0publish-gui.exe">
<runner command="run-gui" interface="https://apps.0install.net/dotnet/clr.xml" version="4.7.2.."/>
</command>

<!-- Use very high version number to treat local build as newer than any public version. -->
<implementation id="local" version="100-pre" stability="developer" local-path="artifacts/Release/net472"/>
</group>
</interface>
31 changes: 31 additions & 0 deletions 0publish-gui-dotnet.xml.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<interface xmlns="http://zero-install.sourceforge.net/2004/injector/interface">
<name>0publish-gui - .NET version</name>
<summary>GUI editor for Zero Install feeds</summary>
<description>
Publishing a program using Zero Install requires you to create an XML file
listing the available versions, where to get them, and what other software they
depend on.

This program provides a simple graphical interface for creating and editing
these feeds.</description>
<icon href="https://apps.0install.net/0install/0publish.png" type="image/png"/>
<icon href="https://apps.0install.net/0install/0publish.ico" type="image/vnd.microsoft.icon"/>
<homepage>https://docs.0install.net/tools/0publish-gui/</homepage>

<feed-for interface="https://apps.0install.net/0install/0publish-gui-dotnet.xml"/>

<group license="LGPL v3 (GNU Lesser General Public License)">
<requires interface="https://apps.0install.net/utils/gnupg.xml">
<environment insert="." name="PATH"/>
</requires>
<command name="run" path="0publish-gui.exe">
<runner command="run-gui" interface="https://apps.0install.net/dotnet/clr.xml" version="4.7.2.."/>
</command>

<implementation version="{version}" local-path="artifacts/Release/net472">
<manifest-digest/>
<archive href="0publish-gui-dotnet-{version}.tar.zst"/>
</implementation>
</group>
</interface>
32 changes: 0 additions & 32 deletions 0publish-win.xml

This file was deleted.

34 changes: 0 additions & 34 deletions 0publish-win.xml.template

This file was deleted.

14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# Zero Install Publishing Tools
# 0publish-gui - .NET version

[![Build](https://github.com/0install/0publish-win/workflows/Build/badge.svg?branch=master)](https://github.com/0install/0publish-win/actions?query=workflow%3ABuild)
The Zero Install Publishing Tools provide a graphical editor and wizard for creating [Zero Install feeds](https://docs.0install.net/packaging/). They also contain an alternative version of the [0publish command-line tool](https://docs.0install.net/tools/0publish/) optimized for use on Windows. These tools are based on [Zero Install .NET](https://github.com/0install/0install-dotnet).
[![Build](https://github.com/0install/0publish-gui-dotnet/workflows/Build/badge.svg)](https://github.com/0install/0publish-gui-dotnet/actions?query=workflow%3ABuild)
Publishing a program using Zero Install requires you to create an XML file listing the available versions, where to get them, and what other software they depend on.

This program provides a simple graphical interface for creating and editing these feeds.

**[Documentation and download instructions](https://docs.0install.net/tools/0publish-win/)**
**[Documentation and download instructions](https://docs.0install.net/tools/0publish-gui/)**

## Other versions

See also the [Python version](https://github.com/0install/0publish-gui) of this program, for use on Linux and macOS.

## Building

Expand Down
2 changes: 1 addition & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ $ErrorActionPreference = "Stop"
pushd $PSScriptRoot

src\build.ps1 $Version
.\0install.ps1 run --batch https://apps.0install.net/0install/0template.xml 0publish-win.xml.template version=$Version
.\0install.ps1 run --batch https://apps.0install.net/0install/0template.xml 0publish-gui-dotnet.xml.template version=$Version

popd
8 changes: 7 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
"ignoreDeps": ["System.Resources.Extensions"],
"packageRules": [
{
"matchPackagePatterns": ["gittools", "AeroWizard", "Mono.Cecil", "Vestris.ResourceLib"],
"matchPackagePatterns": ["^NanoByte", "^ZeroInstall"],
"groupName": "Zero Install .NET",
"automerge": true,
"automergeType": "branch"
},
{
"matchPackagePatterns": ["gittools", "AeroWizard"],
"automerge": true,
"automergeType": "branch"
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
44 changes: 0 additions & 44 deletions src/Directory.Build.props

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit f22d6fc

Please sign in to comment.