mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Actually do TWLBot release & add .gitignore (#42)
This commit is contained in:
parent
bb7451a8f4
commit
bc0657718c
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
*/build
|
||||
*.nds
|
||||
*.cia
|
||||
*.elf
|
||||
data/*
|
||||
@ -20,12 +20,12 @@ variables:
|
||||
|
||||
steps:
|
||||
- script: |
|
||||
curl -L https://github.com/devkitPro/pacman/releases/download/devkitpro-pacman-1.0.1/devkitpro-pacman.deb -o pacman.deb
|
||||
sudo apt update
|
||||
sudo apt install p7zip-full haveged
|
||||
sudo dpkg -i pacman.deb
|
||||
sudo dkp-pacman -Sy
|
||||
sudo dkp-pacman -S nds-dev --noconfirm
|
||||
curl -L https://github.com/devkitPro/pacman/releases/download/devkitpro-pacman-1.0.1/devkitpro-pacman.deb -o pacman.deb
|
||||
sudo apt update
|
||||
sudo apt install p7zip-full haveged
|
||||
sudo dpkg -i pacman.deb
|
||||
sudo dkp-pacman -Sy
|
||||
sudo dkp-pacman -S nds-dev --noconfirm
|
||||
displayName: 'Setup environment'
|
||||
|
||||
- script: |
|
||||
@ -35,20 +35,20 @@ steps:
|
||||
displayName: 'Echo Variables'
|
||||
|
||||
- script: |
|
||||
export DEVKITPRO="/opt/devkitpro"
|
||||
export DEVKITARM="/opt/devkitpro/devkitARM"
|
||||
sudo cp libmm7.a /opt/devkitpro/libnds/lib/libmm7.a
|
||||
make
|
||||
chmod +x make_cia
|
||||
./make_cia --srl="GodMode9i.nds" --id_0=$(git rev-parse --short=7 HEAD) --tikID=$(git rev-parse --short=16 HEAD)
|
||||
export DEVKITPRO="/opt/devkitpro"
|
||||
export DEVKITARM="/opt/devkitpro/devkitARM"
|
||||
sudo cp libmm7.a /opt/devkitpro/libnds/lib/libmm7.a
|
||||
make
|
||||
displayName: 'Build GodMode9i'
|
||||
|
||||
- script: |
|
||||
mkdir GodMode9i/
|
||||
cp GodMode9i.nds GodMode9i/
|
||||
cp GodMode9i.cia GodMode9i/
|
||||
7z a GodMode9i.7z GodMode9i/
|
||||
cp GodMode9i.7z $(Build.ArtifactStagingDirectory)/GodMode9i.7z
|
||||
chmod +x make_cia
|
||||
./make_cia --srl="GodMode9i.nds" --id_0=$(git rev-parse --short=7 HEAD) --tikID=$(git rev-parse --short=16 HEAD)
|
||||
mkdir GodMode9i/
|
||||
cp GodMode9i.nds GodMode9i/
|
||||
cp GodMode9i.cia GodMode9i/
|
||||
7z a GodMode9i.7z GodMode9i/
|
||||
cp GodMode9i.7z $(Build.ArtifactStagingDirectory)/GodMode9i.7z
|
||||
displayName: 'Pack 7z'
|
||||
|
||||
- script: |
|
||||
@ -64,9 +64,25 @@ steps:
|
||||
git tag v$CURRENT_DATE
|
||||
git log -1 --format="%H" >> travisCommit.txt
|
||||
echo "2428412f374d13bf3f378dd36bd9c69c207964a6" >> travisCommit.txt
|
||||
echo '##vso[task.setvariable variable=TRAVIS_COMMIT]$(git log -1 --format="%H")'
|
||||
echo '##vso[task.setvariable variable=TWLBOT_COMMIT]'$(git log -1 --format="%H")
|
||||
displayName: "Commit to TWLBot/Builds (/extras)"
|
||||
|
||||
|
||||
- task: GitHubRelease@0
|
||||
displayName: "Release to TWLBot/Builds"
|
||||
inputs:
|
||||
gitHubConnection: TWLBot
|
||||
repositoryName: TWLBot/Builds
|
||||
action: create
|
||||
target: $(TWLBOT_COMMIT)
|
||||
tagSource: 'manual'
|
||||
tag: v$(CURRENT_DATE)
|
||||
title: GodMode9i | $(COMMIT_TAG)
|
||||
releaseNotesSource: input
|
||||
releaseNotes: $(COMMIT_MESSAGE)
|
||||
assets: '$(Build.ArtifactStagingDirectory)/**/*'
|
||||
isPreRelease: true
|
||||
addChangeLog: false
|
||||
|
||||
- script: |
|
||||
curl -o send.sh https://raw.githubusercontent.com/DS-Homebrew/discord-webhooks/master/send-azure.sh
|
||||
chmod +x send.sh
|
||||
|
||||
Loading…
Reference in New Issue
Block a user