Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
0922ca2
Create README.md v3
hnanoto May 28, 2025
25f36e2
Create CONTRIBUTING.md v3
hnanoto May 28, 2025
6db828f
Create bug_report.md v3
hnanoto May 28, 2025
4f342a3
Create feature_request.md v3
hnanoto May 28, 2025
ff73c0e
Create PULL_REQUEST_TEMPLATE.md v3
hnanoto May 28, 2025
3fdd873
Create README.md v3
hnanoto May 28, 2025
9af65ed
Create CONTRIBUTING.md v3
hnanoto May 28, 2025
f358272
Delete .github /ISSUE_TEMPLATE directory
hnanoto May 28, 2025
550b6ce
Create README.md v3
hnanoto May 28, 2025
c8f8b32
Create CONTRIBUTING.md v3
hnanoto May 28, 2025
a2affd3
Create bug_report.md
hnanoto May 28, 2025
e8e1fad
Delete .github/ISSUE_TEMPLATE directory
hnanoto May 28, 2025
8c071d7
Add files via upload
hnanoto May 28, 2025
554df9a
Rename CONTRIBUTING_Version3.md to CONTRIBUTING.md
hnanoto May 28, 2025
caee60a
Rename README_Version3.md to README.md
hnanoto May 28, 2025
d3858ba
Rename github_ISSUE_TEMPLATE_bug_report_Version3.md to github_ISSUE_T…
hnanoto May 28, 2025
fb31855
Rename github_ISSUE_TEMPLATE_feature_request_Version3.md to github_IS…
hnanoto May 28, 2025
8c9aca6
Rename github_PULL_REQUEST_TEMPLATE_Version3.md to github_PULL_REQUES…
hnanoto May 28, 2025
c689998
Rename .github/github_ISSUE_TEMPLATE_bug_report.md to .github/github_…
hnanoto May 28, 2025
de9112e
Rename .github/github_ISSUE_TEMPLATE_feature_request.md to feature_re…
hnanoto May 29, 2025
af1e1d9
Rename github_PULL_REQUEST_TEMPLATE.md to PULL_REQUEST_TEMPLATE.md
hnanoto May 29, 2025
6991eb5
Add files via upload
hnanoto May 29, 2025
f0fe7f2
Delete .github/github_ISSUE_TEMPLATE_feature_request_Version3.md
hnanoto May 29, 2025
7067467
Add files via upload
hnanoto May 29, 2025
bca58da
Rename github_ISSUE_TEMPLATE_feature_request_Version3.md to feature_r…
hnanoto May 29, 2025
05f4d9a
Delete .github/workflows/CONTRIBUTING.md v3
hnanoto May 29, 2025
8177244
Delete .github/workflows/README.md v3
hnanoto May 29, 2025
1dab4a7
Create ISSUE_TEMPLATE
hnanoto May 29, 2025
881ccfa
Delete .github/github_ISSUE_TEMPLATE directory
hnanoto May 29, 2025
0da96b9
Delete .github/ISSUE_TEMPLATE
hnanoto May 29, 2025
504607b
Create bug_report.md
hnanoto May 29, 2025
8de6dfb
Add files via upload
hnanoto May 29, 2025
7888d70
Preserve working directory in clone_OpenCorePkg
hnanoto Jun 7, 2025
5699a9a
Merge pull request #3 from hnanoto/codex/edit-buildme-and-verify-syntax
hnanoto Jun 7, 2025
e884730
Add shebang and enforce exit on error in test scripts
hnanoto Jun 7, 2025
4327efc
Merge branch 'CloverHackyColor:master' into master
hnanoto Jun 12, 2025
299ff7d
Merge branch 'CloverHackyColor:master' into master
hnanoto Jun 27, 2025
9eac511
Merge branch 'CloverHackyColor:master' into master
hnanoto Jul 8, 2025
760f393
Merge pull request #4 from hnanoto/codex/adicionar-shebang-e-set--e-n…
hnanoto Jul 8, 2025
7c35776
Merge branch 'CloverHackyColor:master' into master
hnanoto Jul 10, 2025
8310eeb
Merge branch 'CloverHackyColor:master' into master
hnanoto Aug 16, 2025
0373ccb
Merge branch 'CloverHackyColor:master' into master
hnanoto Aug 27, 2025
f0f9d9b
Merge branch 'CloverHackyColor:master' into master
hnanoto Sep 6, 2025
8bbb0a3
Merge branch 'CloverHackyColor:master' into master
hnanoto Oct 1, 2025
002ec56
Merge branch 'CloverHackyColor:master' into master
hnanoto Oct 18, 2025
fd59e73
Merge branch 'CloverHackyColor:master' into master
hnanoto Dec 9, 2025
d3d160e
Merge branch 'CloverHackyColor:master' into master
hnanoto Jan 2, 2026
73185ee
ci: enable automatic GitHub Releases on tags
Jan 2, 2026
e92905b
Add support for booting BaseSystem.dmg from com.apple.recovery.boot
Jan 7, 2026
60034db
feat: Add OpenCore-style Recovery DMG boot support
Jan 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Como contribuir

Obrigado pelo interesse em contribuir com este projeto!

## Como começar

1. Faça um fork deste repositório.
2. Crie uma branch para sua modificação:
`git checkout -b minha-mudanca`
3. Faça suas modificações.
4. Envie um pull request detalhando suas mudanças.

## Abrindo issues

- Relate bugs, melhorias ou sugestões de forma clara.
- Inclua logs, prints ou passos para reproduzir quando possível.

## Padrão de código

- Prefira código C/C++ moderno e limpo.
- Evite macros obsoletas, casts desnecessários e código não documentado.
- Comente partes complexas.

## Revisão de Pull Requests

- PRs são bem-vindos! Aguarde revisão, sugestões e discussões.
- Use o template de Pull Request ao abrir.

## Dúvidas?

Abra uma issue ou discuta no PR.
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Bug Report
about: Relatar um bug para ajudar a melhorar o projeto
title: "[BUG] "
labels: bug
assignees: ''
---

**Descreva o bug**
Uma descrição clara e concisa do que é o bug.

**Como reproduzir**
Passos para reproduzir o comportamento:
1. Vá para '...'
2. Clique em '...'
3. Role até '...'
4. Veja o erro

**Comportamento esperado**
Descreva o que você esperava que acontecesse.

**Capturas de tela**
Se aplicável, adicione capturas de tela para ajudar a explicar seu problema.

**Ambiente:**
- SO: [ex: macOS Ventura]
- Versão do Clover: [ex: r5146]
- Hardware: [ex: Intel i7, Z490, RX 580]

**Informações adicionais**
Adicione qualquer outra informação relevante sobre o problema.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature Request
about: Sugerir uma ideia para o projeto
title: "[FEATURE] "
labels: enhancement
assignees: ''
---

**Sua sugestão de melhoria**
Descreva a funcionalidade que gostaria de ver.

**Motivação**
Por que essa melhoria é importante para você ou para a comunidade?

**Implementação**
Tem alguma ideia de como implementar? Sinta-se à vontade para sugerir.

**Informações adicionais**
Inclua qualquer outra informação relevante.
20 changes: 20 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Descrição

Descreva detalhadamente o que foi alterado.

## Tipo de mudança

- [ ] Bugfix
- [ ] Nova funcionalidade
- [ ] Melhorias no código
- [ ] Atualização de documentação

## Checklist

- [ ] Testei minhas alterações localmente
- [ ] Adicionei comentários relevantes no código
- [ ] Atualizei a documentação relevante

## Informações adicionais

Inclua qualquer detalhe extra relevante ao seu PR.
57 changes: 57 additions & 0 deletions .github/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# CloverBootloader Hackintosh and Beyond (Fork)

Este é um fork do [CloverBootloader](https://github.com/CloverHackyColor/CloverBootloader) com o objetivo de modernizar, corrigir bugs e facilitar o uso pela comunidade Hackintosh.

## Objetivos do Fork

- Modernizar o código para padrões atuais
- Melhorar o processo de build e releases
- Facilitar contribuições e colaboração
- Corrigir bugs conhecidos e aumentar a estabilidade

## Como compilar (local)

**Pré-requisitos:**
- macOS (recomendado, pode funcionar em Linux com adaptações)
- GCC 5.3 (ou compatível)
- p7zip instalado (`brew install p7zip`)
- Permissão de execução nos scripts (`chmod +x buildme ebuild.sh`)

**Passos:**
```sh
git clone https://github.com/hnanoto/CloverBootloader-Hackintosh-and-Beyond.git
cd CloverBootloader-Hackintosh-and-Beyond
make Clover
```
Os arquivos de release aparecerão na pasta `CloverPackage/sym` e `CloverPackage/CloverV2/EFI/CLOVER/`.

**Limpeza:**
```sh
make clean
```

## Build automático (CI)

A cada push para a branch principal, o GitHub Actions irá:
- Compilar usando macos-latest
- Gerar artefatos ZIP/7Z/PKG
- Disponibilizar para download como artefato do workflow

Você pode acompanhar os builds na aba "Actions" do GitHub.

## Contribuindo

Para contribuir, veja o arquivo [CONTRIBUTING.md](CONTRIBUTING.md).

## Roadmap Inicial

- [ ] Modernizar código C/C++
- [ ] Corrigir warnings e macros obsoletas
- [ ] Adicionar testes automatizados
- [ ] Atualizar dependências externas
- [ ] Melhorar documentação
- [ ] Criar templates de issues e pull requests

## Créditos

Baseado no trabalho da equipe CloverHackyColor e colaborações da comunidade Hackintosh.
17 changes: 17 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@ name: CI

on:
push:
branches:
- '**'
tags:
- 'v*'
pull_request:
workflow_dispatch:

jobs:
build-macos:
name: Build Clover Release
runs-on: macos-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6

Expand All @@ -34,6 +40,7 @@ jobs:
(cd "CloverPackage/sym/CloverISO-${{ env.CUR_TAG }}" && 7z a Clover-${{ env.CUR_TAG }}-X64.iso.7z *.iso || exit 1)
releaseItems=(CloverPackage/sym/CloverISO*/*.7z CloverPackage/sym/CloverV2*.zip CloverPackage/CloverV2/EFI/CLOVER/CLOVERX64.efi.zip CloverPackage/sym/Clover_r*.pkg)
for releaseItem in "${releaseItems[@]}"; do cp -Rf "${releaseItem}" ./ || exit 1; done

- name: Upload to Artifacts
uses: actions/upload-artifact@v6
with:
Expand All @@ -43,3 +50,13 @@ jobs:
CloverV2*.zip
CLOVERX64.efi.zip
Clover_r*.pkg

- name: Publish Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: |
*.7z
CloverV2*.zip
CLOVERX64.efi.zip
Clover_r*.pkg
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,7 @@ RELEASE_*/

#work in progress
*_wip

# Local debug files
bin/
DEBUG_REPORT.md
2 changes: 2 additions & 0 deletions RedfishPkg/Library/JsonLib/jansson/test/scripts/run-tests.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh
set -e
# Copyright (c) 2009-2016 Petri Lehtinen <petri@digip.org>
#
# Jansson is free software; you can redistribute it and/or modify
Expand Down
1 change: 1 addition & 0 deletions RedfishPkg/Library/JsonLib/jansson/test/suites/api/run
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
set -e
#
# Copyright (c) 2009-2016 Petri Lehtinen <petri@digip.org>
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
set -e
#
# Copyright (c) 2009-2016 Petri Lehtinen <petri@digip.org>
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
set -e
#
# Copyright (c) 2009-2016 Petri Lehtinen <petri@digip.org>
#
Expand Down
1 change: 1 addition & 0 deletions RedfishPkg/Library/JsonLib/jansson/test/suites/invalid/run
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
set -e
#
# Copyright (c) 2009-2016 Petri Lehtinen <petri@digip.org>
#
Expand Down
1 change: 1 addition & 0 deletions RedfishPkg/Library/JsonLib/jansson/test/suites/valid/run
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
set -e
#
# Copyright (c) 2009-2016 Petri Lehtinen <petri@digip.org>
#
Expand Down
31 changes: 31 additions & 0 deletions VC/CONTRIBUTING.md v3
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Como contribuir

Obrigado pelo interesse em contribuir com este projeto!

## Como começar

1. Faça um fork deste repositório.
2. Crie uma branch para sua modificação:
`git checkout -b minha-mudanca`
3. Faça suas modificações.
4. Envie um pull request detalhando suas mudanças.

## Abrindo issues

- Relate bugs, melhorias ou sugestões de forma clara.
- Inclua logs, prints ou passos para reproduzir quando possível.

## Padrão de código

- Prefira código C/C++ moderno e limpo.
- Evite macros obsoletas, casts desnecessários e código não documentado.
- Comente partes complexas.

## Revisão de Pull Requests

- PRs são bem-vindos! Aguarde revisão, sugestões e discussões.
- Use o template de Pull Request ao abrir.

## Dúvidas?

Abra uma issue ou discuta no PR.
20 changes: 20 additions & 0 deletions VC/README.md v3
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Descrição

Descreva detalhadamente o que foi alterado.

## Tipo de mudança

- [ ] Bugfix
- [ ] Nova funcionalidade
- [ ] Melhorias no código
- [ ] Atualização de documentação

## Checklist

- [ ] Testei minhas alterações localmente
- [ ] Adicionei comentários relevantes no código
- [ ] Atualizei a documentação relevante

## Informações adicionais

Inclua qualquer detalhe extra relevante ao seu PR.
24 changes: 13 additions & 11 deletions buildme
Original file line number Diff line number Diff line change
Expand Up @@ -138,17 +138,19 @@ fi

# Clone OR Update OpenCorePkg
function clone_OpenCorePkg() {
cd "${CLOVERROOT}"
if [ ! -d OpenCorePkg/AppleModels ]; then
echo "Cloning OpenCorePkg...."
git clone https://github.com/CloverHackyColor/OpenCorePkg.git > /dev/null
cd "${OpenCorePkg}"
git submodule update --init
else
echo "Updating OpenCorePkg...."
cd "${OpenCorePkg}"
git pull > /dev/null
fi
pushd . >/dev/null
cd "${CLOVERROOT}"
if [ ! -d OpenCorePkg/AppleModels ]; then
echo "Cloning OpenCorePkg...."
git clone https://github.com/CloverHackyColor/OpenCorePkg.git > /dev/null
cd "${OpenCorePkg}"
git submodule update --init
else
echo "Updating OpenCorePkg...."
cd "${OpenCorePkg}"
git pull > /dev/null
fi
popd >/dev/null
}

updateClover() {
Expand Down
19 changes: 19 additions & 0 deletions feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature Request
about: Sugerir uma ideia para o projeto
title: "[FEATURE] "
labels: enhancement
assignees: ''
---

**Sua sugestão de melhoria**
Descreva a funcionalidade que gostaria de ver.

**Motivação**
Por que essa melhoria é importante para você ou para a comunidade?

**Implementação**
Tem alguma ideia de como implementar? Sinta-se à vontade para sugerir.

**Informações adicionais**
Inclua qualquer outra informação relevante.
16 changes: 5 additions & 11 deletions rEFIt_UEFI/Platform/Hibernate.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,13 @@
#define PLATFORM_HIBERNATE_H_

/** Returns true if given macOS on given volume is hibernated
* (/private/var/vm/sleepimage exists and it's modification time is close to volume modification time).
* (/private/var/vm/sleepimage exists and it's modification time is close to
* volume modification time).
*/
XBool
IsOsxHibernated (
IN LOADER_ENTRY *Entry
);

class LOADER_ENTRY;
XBool IsOsxHibernated(IN LOADER_ENTRY *Entry);

/** Prepares nvram vars needed for boot.efi to wake from hibernation. */
XBool
PrepareHibernation (
IN REFIT_VOLUME *Volume
);

XBool PrepareHibernation(IN REFIT_VOLUME *Volume);

#endif /* PLATFORM_HIBERNATE_H_ */
Loading
Loading