Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownX7 committed Mar 12, 2021
0 parents commit c070e91
Show file tree
Hide file tree
Showing 14 changed files with 792 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release_artifact.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build Release Artifact
on:
push:
branches: 'master'
jobs:
build:
runs-on: [windows-latest]

steps:
- uses: actions/checkout@v2

- name: Setup MSBuild
uses: microsoft/[email protected]

- name: Setup NuGet
uses: NuGet/[email protected]

- name: Restore NuGet Packages
run: nuget restore Cammy.sln

- name: Download Dalamud
run: |
Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/latest.zip -OutFile latest.zip
Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev\"
- name: Build
run: msbuild Cammy.sln /p:Configuration=Release

- name: Extract Publish
run: |
Expand-Archive -Force ./Publish/latest.zip ./Artifact
- name: Upload Build Artifact
uses: actions/[email protected]
with:
path: ./Artifact/*
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

obj/

.vs/

bin/

Publish/
15 changes: 15 additions & 0 deletions Attributes/AliasesAttribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;

namespace Cammy.Attributes
{
[AttributeUsage(AttributeTargets.Method)]
public class AliasesAttribute : Attribute
{
public string[] Aliases { get; }

public AliasesAttribute(params string[] aliases)
{
Aliases = aliases;
}
}
}
15 changes: 15 additions & 0 deletions Attributes/CommandAttribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;

namespace Cammy.Attributes
{
[AttributeUsage(AttributeTargets.Method)]
public class CommandAttribute : Attribute
{
public string Command { get; }

public CommandAttribute(string command)
{
Command = command;
}
}
}
9 changes: 9 additions & 0 deletions Attributes/DoNotShowInHelpAttribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using System;

namespace Cammy
{
[AttributeUsage(AttributeTargets.Method)]
public class DoNotShowInHelpAttribute : Attribute
{
}
}
15 changes: 15 additions & 0 deletions Attributes/HelpMessageAttribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;

namespace Cammy.Attributes
{
[AttributeUsage(AttributeTargets.Method)]
public class HelpMessageAttribute : Attribute
{
public string HelpMessage { get; }

public HelpMessageAttribute(string helpMessage)
{
HelpMessage = helpMessage;
}
}
}
Loading

0 comments on commit c070e91

Please sign in to comment.