diff --git a/build.sh b/build.sh index 4415d8f..bd0c1eb 100755 --- a/build.sh +++ b/build.sh @@ -8,13 +8,13 @@ VERSION=$(git tag -l 'v*' --sort=-v:refname | head -1) agvtool new-version ${VERSION:1} # build -xcodebuild -quiet -configuration Release -target mouselock +xcodebuild -quiet -configuration Release -target Mouselock # clean dist rm -rf dist && mkdir dist # make dmg from app -hdiutil create -fs HFS+ -srcfolder build/Release/mouselock.app -volname mouselock dist/mouselock.dmg +hdiutil create -fs HFS+ -srcfolder build/Release/Mouselock.app -volname Mouselock dist/Mouselock.dmg # clean build rm -r build \ No newline at end of file diff --git a/mouselock.xcodeproj/project.pbxproj b/mouselock.xcodeproj/project.pbxproj index d531d39..e7c86e8 100644 --- a/mouselock.xcodeproj/project.pbxproj +++ b/mouselock.xcodeproj/project.pbxproj @@ -10,13 +10,15 @@ 0E577D8927BD9D5F002B61CC /* mouselockApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E577D8827BD9D5F002B61CC /* mouselockApp.swift */; }; 0E577D8B27BD9D5F002B61CC /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E577D8A27BD9D5F002B61CC /* ContentView.swift */; }; 0E8210F227CD81D000DB2E0B /* CGKeyCodeInitializers.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E8210F127CD81D000DB2E0B /* CGKeyCodeInitializers.swift */; }; + 0E96FDD12917F00500D67A09 /* Media.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0E96FDD02917F00500D67A09 /* Media.xcassets */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ - 0E577D8527BD9D5F002B61CC /* mouselock.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = mouselock.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 0E577D8527BD9D5F002B61CC /* Mouselock.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Mouselock.app; sourceTree = BUILT_PRODUCTS_DIR; }; 0E577D8827BD9D5F002B61CC /* mouselockApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = mouselockApp.swift; sourceTree = ""; }; 0E577D8A27BD9D5F002B61CC /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; 0E8210F127CD81D000DB2E0B /* CGKeyCodeInitializers.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CGKeyCodeInitializers.swift; sourceTree = ""; }; + 0E96FDD02917F00500D67A09 /* Media.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Media.xcassets; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -41,7 +43,7 @@ 0E577D8627BD9D5F002B61CC /* Products */ = { isa = PBXGroup; children = ( - 0E577D8527BD9D5F002B61CC /* mouselock.app */, + 0E577D8527BD9D5F002B61CC /* Mouselock.app */, ); name = Products; sourceTree = ""; @@ -52,6 +54,7 @@ 0E577D8827BD9D5F002B61CC /* mouselockApp.swift */, 0E577D8A27BD9D5F002B61CC /* ContentView.swift */, 0E8210F127CD81D000DB2E0B /* CGKeyCodeInitializers.swift */, + 0E96FDD02917F00500D67A09 /* Media.xcassets */, ); path = src; sourceTree = ""; @@ -59,9 +62,9 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ - 0E577D8427BD9D5F002B61CC /* mouselock */ = { + 0E577D8427BD9D5F002B61CC /* Mouselock */ = { isa = PBXNativeTarget; - buildConfigurationList = 0E577D9427BD9D60002B61CC /* Build configuration list for PBXNativeTarget "mouselock" */; + buildConfigurationList = 0E577D9427BD9D60002B61CC /* Build configuration list for PBXNativeTarget "Mouselock" */; buildPhases = ( 0E577D8127BD9D5F002B61CC /* Sources */, 0E577D8227BD9D5F002B61CC /* Frameworks */, @@ -71,9 +74,9 @@ ); dependencies = ( ); - name = mouselock; + name = Mouselock; productName = mouselock; - productReference = 0E577D8527BD9D5F002B61CC /* mouselock.app */; + productReference = 0E577D8527BD9D5F002B61CC /* Mouselock.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ @@ -84,7 +87,7 @@ attributes = { BuildIndependentTargetsInParallel = 1; LastSwiftUpdateCheck = 1320; - LastUpgradeCheck = 1320; + LastUpgradeCheck = 1410; TargetAttributes = { 0E577D8427BD9D5F002B61CC = { CreatedOnToolsVersion = 13.2.1; @@ -105,7 +108,7 @@ projectDirPath = ""; projectRoot = ""; targets = ( - 0E577D8427BD9D5F002B61CC /* mouselock */, + 0E577D8427BD9D5F002B61CC /* Mouselock */, ); }; /* End PBXProject section */ @@ -115,6 +118,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + 0E96FDD12917F00500D67A09 /* Media.xcassets in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -168,6 +172,7 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; @@ -229,6 +234,7 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; @@ -259,7 +265,8 @@ CODE_SIGN_IDENTITY = "-"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = 0.0.10; + DEAD_CODE_STRIPPING = YES; DEVELOPMENT_ASSET_PATHS = ""; DEVELOPMENT_TEAM = ""; ENABLE_PREVIEWS = YES; @@ -289,7 +296,8 @@ CODE_SIGN_IDENTITY = "-"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = 0.0.10; + DEAD_CODE_STRIPPING = YES; DEVELOPMENT_ASSET_PATHS = ""; DEVELOPMENT_TEAM = ""; ENABLE_PREVIEWS = YES; @@ -320,7 +328,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 0E577D9427BD9D60002B61CC /* Build configuration list for PBXNativeTarget "mouselock" */ = { + 0E577D9427BD9D60002B61CC /* Build configuration list for PBXNativeTarget "Mouselock" */ = { isa = XCConfigurationList; buildConfigurations = ( 0E577D9527BD9D60002B61CC /* Debug */, diff --git a/src/Media.xcassets/AppIcon.appiconset/Contents.json b/src/Media.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..96101a0 --- /dev/null +++ b/src/Media.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,59 @@ +{ + "images" : [ + { + "idiom" : "mac", + "scale" : "1x", + "size" : "16x16" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "16x16" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "32x32" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "32x32" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "128x128" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "128x128" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "256x256" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "256x256" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "512x512" + }, + { + "filename" : "icon.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "512x512" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/src/Media.xcassets/AppIcon.appiconset/icon.png b/src/Media.xcassets/AppIcon.appiconset/icon.png new file mode 100644 index 0000000..dda1df8 Binary files /dev/null and b/src/Media.xcassets/AppIcon.appiconset/icon.png differ diff --git a/src/Media.xcassets/Contents.json b/src/Media.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/src/Media.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +}