Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
127 changes: 127 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
name: Build AltList

on:
push:
branches: [ release ]
workflow_dispatch:

env:
FINALPACKAGE: 1
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1

jobs:
build:
runs-on: macos-14

strategy:
matrix:
scheme: ['', 'rootless', 'roothide']

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install dependencies
run: |
# Install xcbeautify for build output formatting
# Install ldid for iOS code signing
# Install 7zip for compression
brew install xcbeautify ldid-procursus p7zip make

- name: Checkout roothide/theos
uses: actions/checkout@v4
with:
repository: roothide/theos
path: theos-roothide
submodules: recursive

- name: Install iOS SDKs
run: |
export THEOS=$GITHUB_WORKSPACE/theos-roothide
cd theos-roothide
./bin/install-sdk iPhoneOS16.5
./bin/install-sdk iPhoneOS14.5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '16.2'

- name: Build package (${{ matrix.scheme || 'default' }})
run: |
export THEOS=$GITHUB_WORKSPACE/theos-roothide
THEOS_PACKAGE_SCHEME=${{ matrix.scheme }} FINALPACKAGE=1 gmake clean package

- name: Prepare artifacts
run: |
# Create directories for artifacts
mkdir -p artifacts/dsym-${{ matrix.scheme || 'default' }}
mkdir -p artifacts/packages-${{ matrix.scheme || 'default' }}

# Copy dSYM files
if [ -d ".theos/obj" ]; then
find .theos/obj -name "*.dSYM" -exec cp -r {} artifacts/dsym-${{ matrix.scheme || 'default' }}/ \;
fi

# Copy packages
if [ -d "packages" ]; then
cp -r packages/* artifacts/packages-${{ matrix.scheme || 'default' }}/
fi

- name: Upload dSYM artifacts
uses: actions/upload-artifact@v4
with:
name: dsym-${{ matrix.scheme || 'default' }}
path: artifacts/dsym-${{ matrix.scheme || 'default' }}
if-no-files-found: warn

- name: Upload package artifacts
uses: actions/upload-artifact@v4
with:
name: packages-${{ matrix.scheme || 'default' }}
path: artifacts/packages-${{ matrix.scheme || 'default' }}
if-no-files-found: warn

release:
if: github.event_name == 'push' && github.ref == 'refs/heads/release'
needs: build
runs-on: macos-14

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Download all package artifacts
uses: actions/download-artifact@v4
with:
pattern: packages-*
path: release-packages
merge-multiple: true

- name: Create release tag
id: tag
run: |
# Generate tag name with timestamp
TAG_NAME="v$(date +'%Y%m%d-%H%M%S')"
echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag.outputs.tag_name }}
name: Release ${{ steps.tag.outputs.tag_name }}
body: |
Automated build from release branch

This release contains packages built with:
- Default scheme
- Rootless scheme
- Roothide scheme

Built on: ${{ github.sha }}
files: release-packages/**/*
draft: false
prerelease: false
140 changes: 139 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,141 @@
.theos/
.DS_Store
packages/
packages/
.cache/
compile_commands.json

# Created by https://www.toptal.com/developers/gitignore/api/macos,xcode,swift
# Edit at https://www.toptal.com/developers/gitignore?templates=macos,xcode,swift

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### macOS Patch ###
# iCloud generated files
*.icloud

### Swift ###
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings
xcuserdata/

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3

## Obj-C/Swift specific
*.hmap

## App packaging
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
# *.xcodeproj
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.build/

# CocoaPods
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
# Pods/
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build/

# Accio dependency management
Dependencies/
.accio/

# fastlane
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/

### Xcode ###

## Xcode 8 and earlier

### Xcode Patch ###
*.xcodeproj/*
!*.xcodeproj/project.pbxproj
!*.xcodeproj/xcshareddata/
!*.xcodeproj/project.xcworkspace/
!*.xcworkspace/contents.xcworkspacedata
/*.gcno
**/xcshareddata/WorkspaceSettings.xcsettings

# End of https://www.toptal.com/developers/gitignore/api/macos,xcode,swift

5 changes: 5 additions & 0 deletions ATLApplicationCell.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#import <Preferences/PSTableCell.h>
#import <Preferences/PSSpecifier.h>

@interface ATLApplicationCell : PSTableCell
@end
15 changes: 15 additions & 0 deletions ATLApplicationCell.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#import <Foundation/Foundation.h>
#import "ATLApplicationCell.h"

#import "ATLApplicationListControllerBase.h"
#import "PSTableCell+AltList.h"

@implementation ATLApplicationCell

- (void)refreshCellContentsWithSpecifier:(PSSpecifier*)specifier
{
[super refreshCellContentsWithSpecifier:specifier];
[self addSearchHighlights];
}

@end
2 changes: 2 additions & 0 deletions ATLApplicationListControllerBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
@property (nonatomic) BOOL useSearchBar;
@property (nonatomic) BOOL hideSearchBarWhileScrolling;
@property (nonatomic) BOOL includeIdentifiersInSearch;
@property (nonatomic) BOOL highlightSearchText;
@property (nonatomic) BOOL showIdentifiersAsSubtitle;
@property (nonatomic) BOOL alphabeticIndexingEnabled;
@property (nonatomic) BOOL hideAlphabeticSectionHeaders;
Expand All @@ -43,6 +44,7 @@
- (void)_populateSections;

- (void)loadPreferences;
- (void)savePreferences;
- (void)prepareForPopulatingSections;
- (NSString*)localizedStringForString:(NSString*)string;
- (void)reloadApplications;
Expand Down
Loading